|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlockAllocator
The BlockAllocator interface allows the use of different
implementations of allocators for audio and control busses by the
Server class. Busses are identified by their address or
position (an integer number) and a number of channels. An instance of
of a block allocator is obtained through a helper class that implements
the Factory sub interface.
| Nested Class Summary | |
|---|---|
static interface |
BlockAllocator.Block
This sub interface describes a class which represents a block of indices in a BlockAllocator. |
static interface |
BlockAllocator.Factory
This sub interface describes a class which is capable of producing a new BlockAllocator. |
| Method Summary | |
|---|---|
int |
alloc(int numChannels)
Allocates a new bus. |
void |
free(int address)
Frees a bus, that is makes it available again for new re-allocation. |
java.util.List |
getAllocatedBlocks()
Queries a list of allocated blocks. |
| Method Detail |
|---|
int alloc(int numChannels)
numChannels - the number of
channels to allocate. must
be greater than zero.
-1
if the allocator ran out of busses.void free(int address)
address - the index of the busjava.util.List getAllocatedBlocks()
Block
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||