Audio Unit Channel.
More...
#import <AEAudioUnitChannel.h>
Inherits <NSObject>, and <AEAudioPlayable>.
Inherited by AEAudioFilePlayer.
Audio Unit Channel.
This class allows you to add Audio Units as channels. Provide an AudioComponentDescription that describes the audio unit, and the corresponding audio unit will be initialised, ready for use
- (id) initWithComponentDescription: |
|
(AudioComponentDescription) |
audioComponentDescription |
|
Create a new Audio Unit channel.
- Parameters
-
audioComponentDescription | The structure that identifies the audio unit |
- Returns
- The initialised channel
Create a new Audio Unit channel, with a block to run before initialization of the unit.
- Parameters
-
audioComponentDescription | The structure that identifies the audio unit |
preInitializeBlock | A block to run before the audio unit is initialized. This can be used to set some properties that needs to be set before the unit is initialized. |
- Returns
- The initialised channel
- (AudioUnit) AEAudioUnitChannelGetAudioUnit |
|
(__unsafe_unretained AEAudioUnitChannel *) |
channel |
|
Retrieve audio unit reference.
This method, for use on the realtime audio thread, allows subclasses and external classes to access the audio unit.
- Parameters
-
- Returns
- Audio unit reference
- (double) getParameterValueForId: |
|
(AudioUnitParameterID) |
parameterId |
|
Get an audio unit parameter.
- Parameters
-
parameterId | The audio unit parameter identifier |
- Returns
- The value of the parameter
- (void) setParameterValue: |
|
(double) |
value |
forId: |
|
(AudioUnitParameterID) |
parameterId |
|
|
| |
Set an audio unit parameter.
Note: Parameters set via this method will be automatically assigned again if the audio unit is recreated due to removal from the audio controller, an audio controller reload, or a media server error.
- Parameters
-
value | The value of the parameter to set |
parameterId | The audio unit parameter identifier |
Track volume.
Range: 0.0 to 1.0
Track pan.
Range: -1.0 (left) to 1.0 (right)
- (BOOL) channelIsPlaying |
|
readwritenonatomicassign |
- (AUNode) audioGraphNode |
|
readnonatomicassign |
The documentation for this class was generated from the following file: