Function AudioFileCountUserData

Source
pub unsafe extern "C-unwind" fn AudioFileCountUserData(
    in_audio_file: AudioFileID,
    in_user_data_id: u32,
    out_number_items: NonNull<u32>,
) -> i32
Available on crate feature AudioFile only.
Expand description

Get the number of user data items with a certain ID in the file

“User Data” refers to chunks in AIFF, CAF and WAVE files, or resources in Sound Designer II files, and possibly other things in other files. For simplicity, referred to below as “chunks”.

Parameter inAudioFile: an AudioFileID.

Parameter inUserDataID: the four char code of the chunk.

Parameter outNumberItems: on output, if successful, number of chunks of this type in the file.

Returns: returns noErr if successful.