AudioFileStreamGetProperty(_:_:_:_:)
Retrieves the value of the specified property.
Declaration
func AudioFileStreamGetProperty(_ inAudioFileStream: AudioFileStreamID, _ inPropertyID: AudioFileStreamPropertyID, _ ioPropertyDataSize: UnsafeMutablePointer<UInt32>, _ outPropertyData: UnsafeMutableRawPointer) -> OSStatusParameters
- inAudioFileStream:
The ID of the parser from which you wish to obtain data. The parser ID is returned by the Audiofilestreamopen(_:_:_:_:_:) function.
- inPropertyID:
A four-character ID indicating the audio file stream property whose value you want to read. See 1391506 Audio File Stream Properties for possible values.
- ioPropertyDataSize:
On input, the size of the buffer in the
outPropertyDataparameter. Call the Audiofilestreamgetpropertyinfo(_:_:_:_:) function to obtain the size of the property value. On output, the number of bytes of the property value returned. - outPropertyData:
On output, the value of the specified property.
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.