AEIOAudioUnit.h File Reference
#import <Foundation/Foundation.h>
#import <AudioToolbox/AudioToolbox.h>
#import "AETime.h"

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 Documentation

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.

Parameters
ioDataThe audio buffer list to fill
framesThe number of frames
timestampThe corresponding timestamp

Variable Documentation

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.