Function

AudioSessionSetProperty

Sets the value of a specified audio session property.

Declaration

OSStatus AudioSessionSetProperty(AudioSessionPropertyID inID, UInt32 inDataSize, const void *inData);

Parameters

inID

The identifier for the audio session property that you want to set the value of.

inDataSize

The size, in bytes, of the value in the inData parameter.

inData

The value that you are applying to 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.

See Also

Using Audio Session Properties

AudioSessionGetProperty

Gets the value of a specified audio session property.

Deprecated
AudioSessionGetPropertySize

Gets the size of the value for a specified audio session property.

Deprecated
AudioSessionAddPropertyListener

Adds a property listener callback function to your application’s audio session object.

Deprecated
AudioSessionRemovePropertyListenerWithUserData

Removes a property listener callback function from your application’s audio session object.

Deprecated
AudioSessionRemovePropertyListener

Removes an audio session property listener callback function.

Deprecated