pub unsafe extern "C-unwind" fn AudioDeviceCreateIOProcID(
in_device: AudioObjectID,
in_proc: AudioDeviceIOProc,
in_client_data: *mut c_void,
out_io_proc_id: NonNull<AudioDeviceIOProcID>,
) -> i32Available on crate features
AudioHardware and objc2-core-audio-types only.Expand description
Creates an AudioDeviceIOProcID from an AudioDeviceIOProc and a client data pointer.
AudioDeviceIOProcIDs allow for the client to register the same function pointer with a device multiple times
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.
Parameter outIOProcID: The newly created AudioDeviceIOProcID.
Returns: An OSStatus indicating success or failure.
ยงSafety
in_procmust be implemented correctly.in_client_datamust be a valid pointer or null.out_io_proc_idmust be a valid pointer.