AudioHardwareServiceAddPropertyListener

Function AudioHardwareServiceAddPropertyListener 

Source
pub unsafe extern "C-unwind" fn AudioHardwareServiceAddPropertyListener(
    in_object_id: AudioObjectID,
    in_address: *const AudioObjectPropertyAddress,
    in_listener: AudioObjectPropertyListenerProc,
    in_client_data: *mut c_void,
) -> i32
๐Ÿ‘ŽDeprecated: no longer supported
Available on crate feature objc2-core-audio only.
Expand description

Registers the given AudioObjectPropertyListenerProc to receive notifications when the given properties change.

Parameter inObjectID: The AudioObject to register the listener with.

Parameter inAddress: The AudioObjectPropertyAddresses indicating which property the listener should be notified about.

Parameter inListener: The AudioObjectPropertyListenerProc to call.

Parameter inClientData: A pointer to client data that is passed to the listener when it is called.

Returns: An OSStatus indicating success or failure.

ยงSafety

  • in_address must be a valid pointer.
  • in_listener must be implemented correctly.
  • in_client_data must be a valid pointer.