AudioObjectSetPropertyData

Function AudioObjectSetPropertyData 

Source
pub unsafe extern "C-unwind" fn AudioObjectSetPropertyData(
    in_object_id: AudioObjectID,
    in_address: NonNull<AudioObjectPropertyAddress>,
    in_qualifier_data_size: u32,
    in_qualifier_data: *const c_void,
    in_data_size: u32,
    in_data: NonNull<c_void>,
) -> i32
Available on crate feature AudioHardware only.
Expand description

Tells an AudioObject 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.

Parameter inObjectID: The AudioObject to change.

Parameter inAddress: An AudioObjectPropertyAddress indicating which property is being changed.

Parameter inQualifierDataSize: A UInt32 indicating the size of the buffer pointed to by inQualifierData. Note that not all properties require qualification, in which case this value will be 0.

Parameter inQualifierData: A buffer of data to be used in determining the data of the property being queried. Note that not all properties require qualification, in which case this value will be NULL.

Parameter inDataSize: A UInt32 indicating the size of the buffer pointed to by inData.

Parameter inData: The buffer containing the data to be used to change the property’s value.

Returns: An OSStatus indicating success or failure.

§Safety

  • in_address must be a valid pointer.
  • in_qualifier_data must be a valid pointer or null.
  • in_data must be a valid pointer.