Function AudioFileGetUserData

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

Get the data of a chunk in a file.

Parameter inAudioFile: an AudioFileID.

Parameter inUserDataID: the four char code of the chunk.

Parameter inIndex: an index specifying which chunk if there are more than one.

Parameter ioUserDataSize: the size of the buffer on input, size of bytes copied to buffer on output

Parameter outUserData: a pointer to a buffer in which to copy the chunk data.

Returns: returns noErr if successful.