Contents

AudioUnitPropertyListenerProc

Called by the system when the value of a specified audio unit property has changed.

Declaration

typealias AudioUnitPropertyListenerProc = (UnsafeMutableRawPointer, AudioUnit, AudioUnitPropertyID, AudioUnitScope, AudioUnitElement) -> Void

Parameters

  • inRefCon:

    Custom data that you provided when registering your callback with the audio unit.

  • inUnit:

    The audio unit upon which the specified property value has changed.

  • inID:

    The property whose value has changed.

  • inScope:

    The scope of the property whose value has changed.

  • inElement:

    The element ID on the scope of the property whose value has changed.

Return Value

A result code.

Discussion

If you named your callback function MyAudioUnitPropertyListenerProc, you would declare it like this:

Discussion

You register your AudioUnitPropertyListenerProc callback function using the AudioUnitAddPropertyListener(_:_:_:_:) function.

See Also

Audio Unit Types