AudioSessionGetProperty(_:_:_:)
Gets the value of a specified audio session property.
Declaration
func AudioSessionGetProperty(_ inID: AudioSessionPropertyID, _ ioDataSize: UnsafeMutablePointer<UInt32>!, _ outData: UnsafeMutableRawPointer!) -> OSStatusParameters
- inID:
The identifier for the audio session property that you want to get the value of.
- ioDataSize:
On input, the memory size for the
outDataparameter. On output, the actual size of the property value. - outData:
On output, the value of the specified audio session property.
Return Value
A result code. See Result Codes.
Discussion
Audio session properties are listed and described in Audio Session Property Identifiers.
Special Considerations
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.
See Also
Related Documentation
Functions
AudioFileReadPackets(_:_:_:_:_:_:_:)AudioComponentGetIcon(_:_:)AudioComponentGetLastActiveTime(_:)AudioHardwareServiceAddPropertyListener(_:_:_:_:)AudioHardwareServiceGetPropertyData(_:_:_:_:_:_:)AudioHardwareServiceGetPropertyDataSize(_:_:_:_:_:)AudioHardwareServiceHasProperty(_:_:)AudioHardwareServiceIsPropertySettable(_:_:_:)AudioHardwareServiceRemovePropertyListener(_:_:_:_:)AudioHardwareServiceSetPropertyData(_:_:_:_:_:_:)AudioOutputUnitGetHostIcon(_:_:)AudioOutputUnitPublish(_:_:_:_:)AudioSessionAddPropertyListener(_:_:_:)AudioSessionGetPropertySize(_:_:)AudioSessionInitialize(_:_:_:_:)