FMOD troubles...

BlitzMax Forums/BlitzMax Beginners Area/FMOD troubles...

I was having similar problems with using the BASS sound system. Could be down to how you are declaring your function calls to the FMOD lib.

This works:

Local dll:Int = LoadLibraryA("bass.dll") 
Local addr:Int = Int(GetProcAddress(dll,"BASS_Init"))
Global BASS_Init%(device:Int, freq:Int, flags:Int, win:Int, clsid:Int) "win32" 
(Int Ptr(Varptr(BASS_Init)))[0]=addr 

But when I omitted the "win32" reference, all hell broke loose.