AudioFileSetUserData(_:_:_:_:_:)
Sets a user data item in an audio file.
Declaration
func AudioFileSetUserData(_ inAudioFile: AudioFileID, _ inUserDataID: UInt32, _ inIndex: UInt32, _ inUserDataSize: UInt32, _ inUserData: UnsafeRawPointer) -> OSStatusParameters
- inAudioFile:
The audio file that you want to set a user data item in.
- inUserDataID:
The four-character code for the user data item.
- inIndex:
An index specifying the user data item you want to set. You use this parameter if the file contains more than one user data item with the four-character code specified in the
inUserDataIDparameter. - inUserDataSize:
On input, the size of the data to copy. On output, the size of the bytes copied from the buffer.
- inUserData:
A pointer to a buffer from which to copy the user data.
Return Value
A result code if there’s an error (see Result Codes) or noErr if the operation succeeds.