AudioObjectPropertyListenerBlock
Declaration
typealias AudioObjectPropertyListenerBlock = (UInt32, UnsafePointer<AudioObjectPropertyAddress>) -> VoidParameters
- inNumberAddresses:
The number of elements in the inAddresses array.
- inAddresses:
An array of AudioObjectPropertyAddresses indicating which properties changed.
Discussion
Clients register an AudioObjectPropertyListenerBlock with an AudioObject in order to receive notifications when the properties of the object change.
Listeners will be called when possibly many properties have changed. Consequently, the implementation of a listener must go through the array of addresses to see what exactly has changed. Note that the array of addresses will always have at least one address in it for which the listener is signed up to receive notifications about but may contain addresses for properties for which the listener is not signed up to receive notifications.
See Also
Data Types
AudioClassIDAudioDeviceIDAudioDeviceIOBlockAudioDeviceIOProcAudioDeviceIOProcIDAudioDevicePropertyIDAudioDevicePropertyListenerProcAudioHardwarePropertyIDAudioHardwarePropertyListenerProcAudioObjectIDAudioObjectPropertyElementAudioObjectPropertyListenerProcAudioObjectPropertyScopeAudioObjectPropertySelectorAudioStreamID