pub unsafe extern "C-unwind" fn AudioDeviceSetProperty(
in_device: AudioDeviceID,
in_when: *const AudioTimeStamp,
in_channel: u32,
is_input: bool,
in_property_id: AudioDevicePropertyID,
in_property_data_size: u32,
in_property_data: NonNull<c_void>,
) -> i32AudioHardware and AudioHardwareDeprecated and objc2-core-audio-types only.Expand description
Tells the AudioDevice object to change the value of the given property using the provided data.
Note that the value of the property should not be considered changed until the HAL has called the listeners as many properties values are changed asynchronously. Also note that the same functionality is provided by the function AudioObjectSetPropertyData().
Parameter inDevice: The AudioDevice to change.
Parameter inWhen: A pointer to an AudioTimeStamp that says when to change the property’s value
relative to the device’s time base. NULL means execute the change
immediately.
Parameter inChannel: The channel of the property to change where 0 is the main channel.
Parameter isInput: Which section of the AudioDevice to change.
Parameter inPropertyID: The AudioDevicePropertyID of the property to change.
Parameter inPropertyDataSize: A UInt32 indicating the size of the buffer pointed to by inData.
Parameter inPropertyData: The buffer containing the data to be used to change the property’s value.
Returns: An OSStatus indicating success or failure.
§Safety
in_whenmust be a valid pointer or null.in_property_datamust be a valid pointer.