AudioCodecGetProperty

Function AudioCodecGetProperty 

Source
pub unsafe extern "C-unwind" fn AudioCodecGetProperty(
    in_codec: AudioCodec,
    in_property_id: AudioCodecPropertyID,
    io_property_data_size: NonNull<u32>,
    out_property_data: NonNull<c_void>,
) -> i32
Available on crate features AudioCodec and AudioComponent only.
Expand description

Retrieve the indicated property data. On input, ioDataSize has the size of the data pointed to by outPropertyData. On output, ioDataSize will contain the amount written.

Parameter inCodec: An AudioCodec instance

Parameter inPropertyID: Property ID whose value should be read

Parameter ioPropertyDataSize: Size in bytes of the property data

Parameter outPropertyData: Pointer to the property data buffer

Returns: The OSStatus value

ยงSafety

  • in_codec must be a valid pointer.
  • io_property_data_size must be a valid pointer.
  • out_property_data must be a valid pointer.