void CALLBACK MyFileCloseProc(void *user){ DownloadStuff *download = (DownloadStuff*)user; download->Close();}QWORD CALLBACK MyFileLenProc(void *user){ DownloadStuff *download = (DownloadStuff*)user; return download->GetLength();}DWORD CALLBACK MyFileReadProc(void *buffer, DWORD length, void *user){ DownloadStuff *download = (DownloadStuff*)user; return download->Read(buffer, length);}...DownloadStuff *download = ...; // open connection hereBASS_FILEPROCS fileprocs = { MyFileCloseProc, MyFileLenProc, MyFileReadProc, NULL };stream = BASS_StreamCreateFileUser(STREAMFILE_BUFFER, 0, &fileprocs, download);