Type Alias

AudioSessionPropertyListener

Invoked when an audio session property changes in iOS.

Declaration

typedef void (*AudioSessionPropertyListener)(void *inClientData, AudioSessionPropertyID inID, UInt32 inDataSize, const void *inData);

Parameters

inClientData

Data that you specified in the inClientData parameter of the AudioSessionAddPropertyListener function. Can be NULL.

inID

The identifier for the audio session property whose value just changed. See Audio Session Property Identifiers.

inDataSize

The size, in bytes, of the value of the changed property.

inData

The new value of the changed property.

Discussion

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

Discussion

You can register one or more property listener callbacks with your application’s audio session object by calling the AudioSessionAddPropertyListener function.

See Also

Callbacks

AudioSessionInterruptionListener

Invoked when an audio interruption in iOS begins or ends.