ALSoundSourcePool Class Reference
Inherits from | NSObject |
Declared in | ALSoundSourcePool.h |
Tasks
-
sources
All sources managed by this pool (idALSoundSource).
property -
+ pool
Make a new pool.
-
– addSource:
Add a source to this pool.
-
– removeSource:
Remove a source from this pool
-
– getFreeSource:
Acquire a free or freeable source from this pool. It first attempts to find a completely free source. Failing this, it will attempt to interrupt a source and return that (if attemptToInterrupt is TRUE).
Properties
sources
All sources managed by this pool (idALSoundSource).
@property (nonatomic, readonly) NSArray *sources
Declared In
ALSoundSourcePool.h
Instance Methods
addSource:
Add a source to this pool.
- (void)addSource:(id<ALSoundSource>)source
Parameters
- source
The source to add.
Declared In
ALSoundSourcePool.h
getFreeSource:
Acquire a free or freeable source from this pool. It first attempts to find a completely free source. Failing this, it will attempt to interrupt a source and return that (if attemptToInterrupt is TRUE).
- (id<ALSoundSource>)getFreeSource:(bool)attemptToInterrupt
Parameters
- attemptToInterrupt
If TRUE, attempt to interrupt sources to free them for use.
Return Value
The freed sound source, or nil if no sources are freeable.
Declared In
ALSoundSourcePool.h