Playing NSF Files

BlitzMax Forums/BlitzMax Programming/Playing NSF Files

Basically, if something says LGPL, and you don't see any exemptions, it's dynamic linking only... or you GPL your stuff.


Anyhoo, I've managed (after bloody ages of hacking a makefile together) a Mac .dylib, which is running great.
I expect Windows to be an utter pain in the arse to get working this way... but if it isn't such a bother, I might knock out a proper module for it.
The basics are working well :
Local music:TMusicEmu = TMusicEmu.Create("ff3.nsf", 44100) ' load final fantasy 3 music :-)

If Not music Then
	Print "Error..."
	End
End If

Print "Tracks = " + music.TrackCount()

music.StartTrack(2)

...
... some BASS init/play stuff
...

Function callback:Int(handle:TBassStream, buffer:Byte Ptr, length:Int, user:Object)
	TMusicEmu(user).Play(length / 2, buffer)
	Return length
End Function