Function

AudioFileSetProperty

Sets the value of an audio file property

Declaration

OSStatus AudioFileSetProperty(AudioFileID inAudioFile, AudioFilePropertyID inPropertyID, UInt32 inDataSize, const void *inPropertyData);

Parameters

inAudioFile

The audio file that you want to set a property value for.

inPropertyID

The property whose value you want to set. See Audio File Properties for possible values. Use the AudioFileGetPropertyInfo function to determine whether the property value is writable.

inDataSize

The size of the value you are passing in the inPropertyData parameter.

inPropertyData

The new value for the property.

Return Value

A result code. See Result Codes.

See Also

Getting and Setting Audio File Properties

AudioFileGetProperty

Gets the value of an audio file property.

AudioFileGetPropertyInfo

Gets information about an audio file property, including the size of the property value and whether the value is writable.