pub unsafe extern "C-unwind" fn AudioFileComponentOpenWithCallbacks(
in_component: AudioFileComponent,
in_client_data: NonNull<c_void>,
in_read_func: AudioFile_ReadProc,
in_write_func: AudioFile_WriteProc,
in_get_size_func: AudioFile_GetSizeProc,
in_set_size_func: AudioFile_SetSizeProc,
) -> i32Available on crate features
AudioComponent and AudioFile only.Expand description
implements AudioFileOpenWithCallbacks
Parameter inComponent: an AudioFileComponent
Parameter inClientData: a constant that will be passed to your callbacks.
Parameter inReadFunc: a function that will be called when AudioFile needs to read data.
Parameter inWriteFunc: a function that will be called when AudioFile needs to write data.
Parameter inGetSizeFunc: a function that will be called when AudioFile needs to know the file size.
Parameter inSetSizeFunc: a function that will be called when AudioFile needs to set the file size.
Returns: returns noErr if successful.
ยงSafety
in_componentmust be a valid pointer.in_client_datamust be a valid pointer.in_read_funcmust be implemented correctly.in_write_funcmust be implemented correctly.in_get_size_funcmust be implemented correctly.in_set_size_funcmust be implemented correctly.