de.sciss.jcollider
Interface BlockAllocator.Factory

All Known Implementing Classes:
ContiguousBlockAllocator.Factory, PowerOfTwoAllocator.Factory
Enclosing interface:
BlockAllocator

public static interface BlockAllocator.Factory

This sub interface describes a class which is capable of producing a new BlockAllocator.


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.
 

Method Detail

create

BlockAllocator create(int size)
Creates a new block allocator instance of the given size. Bus indices start at zero.

Parameters:
size - the number of channels the allocator manages
Returns:
a new empty allocator of the given size

create

BlockAllocator create(int size,
                      int pos)
Creates a new block allocator instance of the given size, with Bus indices starting at a given index.

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()