AURenderObserver
A block called when an audio unit renders audio.
Declaration
typealias AURenderObserver = (AudioUnitRenderActionFlags, UnsafePointer<AudioTimeStamp>, AUAudioFrameCount, Int) -> VoidDiscussion
This block is called by the base class’s AURenderBlock block before and after each render cycle. The observer can distinguish between before and after using the unitRenderAction_PreRender and unitRenderAction_PostRender action flag values.
The block takes the following parameters:
- actionFlags
The pointer to the action flags.
- timestamp
The HAL time at which the input data will be rendered. If there is a sample rate conversion or time compression/expansion downstream, the sample time will not have a defined correlation with the
AudioDevicesample time.- frameCount
The number of sample frames to render.
- outputBusNumber
The index of the output bus to render.
See Also
Audio Unit Types
ScheduledAudioFileRegionScheduledAudioSliceScheduledAudioFileRegionCompletionProcScheduledAudioSliceCompletionProcMIDIChannelNumberAUAudioObjectIDAUMIDICIProfileChangedBlockAUAudioChannelCountAUAudioFrameCountAUAudioUnitStatusAUEventListenerProcAUEventListenerRefAUEventSampleTimeAUImplementorValueObserverAUImplementorValueProvider