AudioDeviceAddIOProc

Function AudioDeviceAddIOProc 

Source
pub unsafe extern "C-unwind" fn AudioDeviceAddIOProc(
    in_device: AudioDeviceID,
    in_proc: AudioDeviceIOProc,
    in_client_data: *mut c_void,
) -> i32
๐Ÿ‘ŽDeprecated
Available on crate features AudioHardware and AudioHardwareDeprecated and objc2-core-audio-types only.
Expand description

Registers the given AudioDeviceIOProc with the AudioDevice.

A client may have multiple IOProcs for a given device, but the device is free to only accept as many as it can handle. Note that it is not recommended for clients to have more than a single IOProc registered at a time as this can be wasteful of system resources. Rather, it is recommended that the client do any necessary mixing itself so that only one IOProc is necessary. This routine has been deprecated in favor of AudioDeviceCreateIOProcID().

Parameter inDevice: The AudioDevice to register the IOProc with.

Parameter inProc: The AudioDeviceIOProc to register.

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

Returns: An OSStatus indicating success or failure.

ยงSafety

  • in_proc must be implemented correctly.
  • in_client_data must be a valid pointer or null.