AudioFileGetProperty(_:_:_:_:)
Gets the value of an audio file property.
Declaration
func AudioFileGetProperty(_ inAudioFile: AudioFileID, _ inPropertyID: AudioFilePropertyID, _ ioDataSize: UnsafeMutablePointer<UInt32>, _ outPropertyData: UnsafeMutableRawPointer) -> OSStatusParameters
- inAudioFile:
The audio file you want to obtain a property value from.
- inPropertyID:
The property whose value you want. See 1576499 Audio File Properties for possible values.
- ioDataSize:
On input, the size of the buffer passed in the
outPropertyDataparameter. On output, the number of bytes written to the buffer. Use the Audiofilegetpropertyinfo(_:_:_:_:) function to obtain the size of the property value. - outPropertyData:
On output, the value of the property specified in the
inPropertyIDparameter.
Return Value
A result code. See Result Codes.
Discussion
Some Core Audio property values are C types and others are Core Foundation objects.
If you call this function to retrieve a value that is a Core Foundation object, then this function—despite the use of “Get” in its name—duplicates the object. You are responsible for releasing the object, as described in The Create Rule in Memory Management Programming Guide for Core Foundation.