Function AudioFileGetUserDataAtOffset

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

Get a part of 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 inOffset: offset from the first byte of the chunk to the first byte to get.

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.