AudioDeviceGetPropertyInfo

Function AudioDeviceGetPropertyInfo 

Source
pub unsafe extern "C-unwind" fn AudioDeviceGetPropertyInfo(
    in_device: AudioDeviceID,
    in_channel: u32,
    is_input: bool,
    in_property_id: AudioDevicePropertyID,
    out_size: *mut u32,
    out_writable: *mut u8,
) -> i32
๐Ÿ‘ŽDeprecated
Available on crate features AudioHardware and AudioHardwareDeprecated only.
Expand description

Retrieve information about the given property of an AudioDevice.

Note that the same functionality is provided by the functions AudioObjectHasProperty(), AudioObjectIsPropertySettable(), and AudioObjectGetPropertyDataSize().

Parameter inDevice: The AudioDevice to query.

Parameter inChannel: The channel of the property to query where 0 is the main channel.

Parameter isInput: Which section of the AudioDevice to query.

Parameter inPropertyID: The AudioDevicePropertyID of the property to query.

Parameter outSize: A pointer to a UInt32 that receives the size of the property data in bytes on exit. This can be NULL if the size information is not being requested.

Parameter outWritable: A pointer to a Boolean that receives indication of whether or not the given property can be set. This can be NULL if the writability is not being requested.

Returns: An OSStatus indicating success or failure.

ยงSafety

  • out_size must be a valid pointer or null.
  • out_writable must be a valid pointer or null.