FILEOPENPROC callback
User file opening callback function.
void *CALLBACK FileOpenProc(
const char *filename,
DWORD flags
);
Parameters
filename | The file to open.
|
flags | A combination of these flags.
BASS_UNICODE | filename is in UTF-16 form. Otherwise it is ANSI on Windows and UTF-8 on other platforms.
|
|
Return value
If failed, 0 = let BASS try its own file functions, -1 = do not try the BASS functions. Otherwise the file was successful opened and the return value becomes the "user" parameter for the other BASS_FILEOPENPROCS functions.
Platform-specific
Except on Windows, the BASS_UNICODE flag will never be set because UTF-16 filenames are pre-converted to UTF-8.
See also
BASS_CONFIG_FILEOPENPROCS, BASS_FILEOPENPROCS structure