AudioHardwareAddRunLoopSource

Function AudioHardwareAddRunLoopSource 

Source
pub unsafe extern "C-unwind" fn AudioHardwareAddRunLoopSource(
    in_run_loop_source: &CFRunLoopSource,
) -> i32
👎Deprecated
Available on crate feature AudioHardwareDeprecated only.
Expand description

Add the given CFRunLoopSource to the the HAL’s notification CFRunLoop.

The CFRunLoop the HAL uses for notifications is specified by kAudioHardwarePropertyRunLoop. If kAudioHardwarePropertyRunLoop changes, CFRunLoopSources added with this function will automatically be transferred to the new CFRunLoop. Usage of the HAL’s notification run loop is deprecated. Please use libdispatch instead.

Parameter inRunLoopSource: The CFRunLoopSource to add.

Returns: An OSStatus indicating success or failure.