Skip to main content

AudioDeviceStart

Function AudioDeviceStart 

Source
pub unsafe extern "C-unwind" fn AudioDeviceStart(
    in_device: u32,
    in_proc_id: Option<unsafe extern "C-unwind" fn(u32, NonNull<AudioTimeStamp>, NonNull<AudioBufferList>, NonNull<AudioTimeStamp>, NonNull<AudioBufferList>, NonNull<AudioTimeStamp>, *mut c_void) -> i32>,
) -> i32
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.