Contents

AudioFileRemoveUserData(_:_:_:)

Removes a user data item from an audio file.

Declaration

func AudioFileRemoveUserData(_ inAudioFile: AudioFileID, _ inUserDataID: UInt32, _ inIndex: UInt32) -> OSStatus

Parameters

  • inAudioFile:

    The audio file that contains the user data item you want to remove.

  • inUserDataID:

    The four-character code such as COMM of the user data item.

  • inIndex:

    An index specifying the chunk to remove. Use this parameter if the file contains more than one user data item with the four-character code that you specified in the inUserDataID parameter.

Return Value

A result code if there’s an error (see Result Codes) or noErr if the operation succeeds.

See Also

Working with User Data