Go to the source code of this file.
Classes | |
class | AEIOAudioUnit |
Audio unit interface. More... | |
Typedefs | |
typedef void(^ | AEIOAudioUnitRenderBlock )(AudioBufferList *_Nonnull ioData, UInt32 frames, const AudioTimeStamp *_Nonnull timestamp) |
Render block. | |
Variables | |
NSString *const _Nonnull | AEIOAudioUnitDidSetupNotification |
Setup notification. | |
NSString *const _Nonnull | AEIOAudioUnitDidUpdateStreamFormatNotification |
Stream update notification. | |
typedef void(^ AEIOAudioUnitRenderBlock)(AudioBufferList *_Nonnull ioData, UInt32 frames, const AudioTimeStamp *_Nonnull timestamp) |
Render block.
For output-enabled AEIOAudioUnit instances, you must provide a block of this type to the renderBlock property.
ioData | The audio buffer list to fill |
frames | The number of frames |
timestamp | The corresponding timestamp |
NSString* const _Nonnull AEIOAudioUnitDidSetupNotification |
Setup notification.
This is broadcast when the unit is setup, or re-setup after changing parameters or after a media services reset. After this notification is sent, the audioUnit property will be non-NULL.
NSString* const _Nonnull AEIOAudioUnitDidUpdateStreamFormatNotification |
Stream update notification.
This is broadcast when the stream format updates (sample rate/channel count). If sample rate has changed for an output-enabled unit, this block will be performed between stopping the unit and starting it again.