Function

AudioFileCountUserData

Gets the number of user data items with a specified ID in a file.

Declaration

OSStatus AudioFileCountUserData(AudioFileID inAudioFile, UInt32 inUserDataID, UInt32 *outNumberItems);

Parameters

inAudioFile

The audio file whose user data items are to be counted.

inUserDataID

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

outNumberItems

On output, a pointer to the number of user data items of this type in the file.

Return Value

A result code. See Result Codes.

Discussion

In the context of this function, user data refers to chunks in AIFF, CAF, and WAVE files, to resources in Sound Designer II files, and possibly to other types of information in other files.

See Also

Working with User Data

AudioFileGetUserDataSize

Gets the size of a user data item in an audio file.

AudioFileRemoveUserData

Removes a user data item from an audio file.

AudioFileSetUserData

Sets a user data item in an audio file.

AudioFileGetUserData

Gets a chunk from an audio file.