AudioDeviceStart

Function AudioDeviceStart 

Source
pub unsafe extern "C-unwind" fn AudioDeviceStart(
    in_device: AudioObjectID,
    in_proc_id: AudioDeviceIOProcID,
) -> i32
Available on crate features AudioHardware and objc2-core-audio-types only.
Expand description

Starts IO for the given AudioDeviceIOProcID.

Parameter inDevice: The AudioDevice to start the IOProc on.

Parameter inProcID: The AudioDeviceIOProcID to start. Note that this can be NULL, which starts the hardware regardless of whether or not there are any IOProcs registered. This is necessary if any of the AudioDevice’s timing services are to be used. A balancing call to AudioDeviceStop with a NULL IOProc is required to stop the hardware.

Returns: An OSStatus indicating success or failure.

§Safety

in_proc_id must be implemented correctly.