Hi all, im using masm to compile a chiptune player, with an embedded xm. At the moment im using a really old mod playing lib and would like to upgrade to bassmod.
Unfortunately, i cannot seem to find much help on playing embedded files without the use of the bass_playstreamfile, which i don't believe is available in bassmod. My current code is shown below, if anyone could offer any help, i;d really appreciate it. Thanks

Note: i can play the file if i use an external file if i simply set pMusic to "file.xm" so it's not a logical error. And i assume most of you would guess this anyway, but for those who don't i have only included the code relevant to my problem.
nMusicSize DWORD ?
pMusic LPVOID ?
push esi
INVOKE FindResource, hInstance, IDM_KEYGEN, RT_RCDATA
push eax
INVOKE SizeofResource, hInstance, eax
mov nMusicSize, eax
pop eax
INVOKE LoadResource, hInstance, eax
INVOKE LockResource, eax
mov esi, eax
mov eax, nMusicSize
add eax, SIZEOF nMusicSize
INVOKE GlobalAlloc, GPTR, eax
mov pMusic, eax
mov ecx, nMusicSize
mov dword ptr [eax], ecx
add eax, SIZEOF nMusicSize
mov edi, eax
rep movsb
pop esi
invoke BASSMOD_Init, -1, 44100, 0
invoke BASSMOD_MusicFree
invoke BASSMOD_MusicLoad, 0, ADDR pMusic, 0, 0, BASS_MUSIC_LOOP OR BASS_MUSIC_POSRESET OR BASS_MUSIC_RAMPS
invoke BASSMOD_MusicPlay