Here's an implimentation of Va!ns idea;
#INCLUDE "windows.bi"
#INCLUDE ONCE "win\mmsystem.bi"
#INCLUDE "explode.bas"
DIM SHARED PPP AS UBYTE PTR
PPP=@explode.wav(0)
PlaySound(PPP,NULL,SND_MEMORY OR SND_ASYNC)
Explode.bas is just a wav that's been converted with bin2bas, PPP points at the first element of the array in than resource.
It works but it's ugly, occasionally it causes the screen to glitch in tinyptc and you cannot specify a sound channel (as far as I know so if you try and play more than one sample, the other gets cut off).
I am looking for a better solution..
Any ideas?