Instance Method


Adds a block to be called on each render cycle.


func token(byAddingRenderObserver observer: @escaping AURenderObserver) -> Int



The block to call.

Return Value

A token to be used when removing the observer.


The supplied block is called at the beginning and ending of each render cycle. It should not make any blocking calls.

This method is implemented in the AUAudioUnit base class and should not be overridden.

This version 3 method is bridged to the version 2 AudioUnitAddRenderNotify(_:_:_:) API.

See Also

Managing the Render Cycle

var renderBlock: AURenderBlock

The block that hosts use to ask the audio unit to render audio.

var scheduleParameterBlock: AUScheduleParameterBlock

The block that hosts use to schedule parameters.

var maximumFramesToRender: AUAudioFrameCount

The maximum number of frames that the audio unit can render at once.

func removeRenderObserver(Int)

Removes an observer block previously added to the render cycle.