Playing NSF files (retro NES music) - help

BlitzMax Forums/BlitzMax Programming/Playing NSF files (retro NES music) - help

Ok, I've got NSFs playing, but it's far from ideal (for one thing there doesn't even seem to be any way to choose a different track). Anyway, using the Festalon Winamp plugin, the "wave out" plugin that comes with Winamp, and a third plugin called SXMS for something called Game Maker that I got from here: http://shaltif.shawn64.com/SITE/DLL.html (SXMS allows Winamp plugins to be used in Game Maker), I used pexports and dlltool to make a lib for SXMS and came up with this:

Import "-lsmxs2"

Strict

Extern "c"
	Function SXMS2_W_Init()
	Function SXMS2_W_LoadPlugOut:Double(PlugOutName:Byte Ptr)
	Function SXMS2_W_LoadPlugIn:Double(PlugInName:Byte Ptr)
	Function SXMS2_W_Play(Filename:Byte Ptr)
	Function SXMS2_W_Close()
	Function SXMS2_W_Configure(Arg0:Double)
End Extern

SXMS2_W_Init()

SXMS2_W_LoadPlugOut("out_wave.dll".ToCString())
SXMS2_W_LoadPlugIn("in_festalon.dll".ToCString())

'SXMS2_W_Configure(1)

SXMS2_W_Play("smb.nsf".ToCString())

Repeat
Until KeyHit(KEY_ESCAPE)

SXMS2_W_Close()


It seems kind of stupid to require people to download Winamp and get one of the default plugins out of it to have to do this, so I'll continue trying to improve things, but nethertheless - this rules!