User file read callback function.
DWORD CALLBACK FileReadProc(
void *buffer,
DWORD length,
void *user
);
| buffer | Pointer to the buffer to put the data in. |
| length | Maximum number of bytes to read. |
| user | The user instance data given when BASS_StreamCreateFileUser was called, or returned by a FILEOPENPROC. |
When using the buffered file systems, this function can just return whatever data is currently available. If there is none available but more is expected, then it should wait for some to become available. The function runs in its own thread in this case, so any delays will not affect other streams like with the unbuffered file system.