Adds a property listener callback to an audio queue.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
The audio queue that you want to assign a property listener callback to.
The ID of the property whose changes you want to respond to. See
Queue Property ID
The callback to be invoked when the property value changes.
Custom data for the property listener callback.
A result code. See Result Codes.
Use this function to let your application respond to property value changes in an audio queue. For example, say your application’s user interface has a button that acts as a Play/Stop toggle switch. When an audio file has finished playing, the audio queue stops and the value of the
k property changes from
false. You can use a property listener callback to update the button text appropriately.