AudioCodecGetPropertyInfo(_:_:_:_:)
Retrieves information about a codec property.
Declaration
func AudioCodecGetPropertyInfo(_ inCodec: AudioCodec, _ inPropertyID: AudioCodecPropertyID, _ outSize: UnsafeMutablePointer<UInt32>?, _ outWritable: UnsafeMutablePointer<DarwinBoolean>?) -> OSStatusParameters
- inCodec:
An audio codec object. Because an audio codec object is a Component Manger component instance, you can use the Component Manager (for example, the functions 1516552 Findnextcomponent and OpenAComponent) to obtain an audio codec object.
- inPropertyID:
Property ID of the property about which you want to obtain information. Codec property IDs are listed in 1494121 Global Codec Properties and 1494111 Instance Codec Properties.
- outSize:
On return, size in bytes of the current value of the property.
- outWritable:
Returns
trueif you can change the value of the property, otherwisefalse.
Return Value
Returns NoErr if successful, otherwise, a result code. See Result Codes for a list of possible values.
Discussion
Call this function to:
get the size of a property value before calling AudioCodecGetProperty(_:_:_:_:) to retrieve the value
find out if a property value can be modified before calling AudioCodecSetProperty(_:_:_:_:) to set the value