de.sciss.jcollider
Class ContiguousBlockAllocator.Factory

java.lang.Object
  extended by de.sciss.jcollider.ContiguousBlockAllocator.Factory
All Implemented Interfaces:
BlockAllocator.Factory
Enclosing class:
ContiguousBlockAllocator

public static class ContiguousBlockAllocator.Factory
extends java.lang.Object
implements BlockAllocator.Factory


Constructor Summary
ContiguousBlockAllocator.Factory()
           
 
Method Summary
 BlockAllocator create(int size)
          Creates a new block allocator instance of the given size.
 BlockAllocator create(int size, int pos)
          Creates a new block allocator instance of the given size, with Bus indices starting at a given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContiguousBlockAllocator.Factory

public ContiguousBlockAllocator.Factory()
Method Detail

create

public BlockAllocator create(int size)
Description copied from interface: BlockAllocator.Factory
Creates a new block allocator instance of the given size. Bus indices start at zero.

Specified by:
create in interface BlockAllocator.Factory
Parameters:
size - the number of channels the allocator manages
Returns:
a new empty allocator of the given size

create

public BlockAllocator create(int size,
                             int pos)
Description copied from interface: BlockAllocator.Factory
Creates a new block allocator instance of the given size, with Bus indices starting at a given index.

Specified by:
create in interface BlockAllocator.Factory
Parameters:
size - the number of channels the allocator manages
pos - the first bus index to use. this is usefull for example to return private audio busses which begin right after the hardware wired busses.
Returns:
a new empty allocator of the given size, starting at the given index
See Also:
ServerOptions.getFirstPrivateBus()