ALSoundSourcePool Class Reference
Inherits from | NSObject |
Declared in | ALSoundSourcePool.h |
Properties
sources
All sources managed by this pool (idALSoundSource).
@property (nonatomic, readonly, retain) 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
removeSource:
Remove a source from this pool
- (void)removeSource:(id<ALSoundSource>)source
Parameters
- source
The source to remove.
Declared In
ALSoundSourcePool.h