Firelight Technologies FMOD Studio API
Callback for reading from a file.
FMOD_RESULT F_CALLBACK FMOD_FILE_READ_CALLBACK(
void *handle,
void *buffer,
unsigned int sizebytes,
unsigned int *bytesread,
void *userdata
);
handle
This is the handle you returned from the open callback to use for your own file routines.
buffer
The buffer to read your data into.
sizebytes
The number of bytes to read.
bytesread
The number of bytes successfully read.
userdata
Userdata from FMOD_CREATESOUNDEXINFO.fileuserdata.
If the function succeeds then the return value is FMOD_OK.
If the function fails then the return value will be one of the values defined in the FMOD_RESULT enumeration.
If the callback is from System::attachFileSystem, then the return value is ignored.
Version 1.03.06 Built on Apr 17, 2014