I'm having some problems getting FMOD working properly. If I call FSOUND_Init() in a program I start having various array indexing errors. For example, when I execute the following:
I get an error telling me that I'm trying to index an array out of bounds. Upon inspecting the debugger I can see that DrawImage thinks that it needs to draw frame 736! This also happens to be the x coordinate (something is getting scrambled). If I comment out the lines that initialize FMOD the code runs as expected. I've also tried using bass.dll in the same way and have similar results. I've been staring at this problem for hours and have no idea what I could be doing wrong. If anyone feels like taking a stab at this you can download the mod that I started and all other needed files here:
http://www.evillink.net/FMOD.zip
Any help would be greatly appreciated!
Strict Graphics 800,600,0 If Not FSOUND_Init(44100,32,0) Print FMOD_ErrorString(FSOUND_GetError()) End EndIf Print "FMOD initialized." Local btn64:tImage=LoadImage("64x64.png") While Not KeyHit(KEY_ESCAPE) Cls DrawImage btn64,GraphicsWidth()-64,0 FlushMem Flip Wend End
I get an error telling me that I'm trying to index an array out of bounds. Upon inspecting the debugger I can see that DrawImage thinks that it needs to draw frame 736! This also happens to be the x coordinate (something is getting scrambled). If I comment out the lines that initialize FMOD the code runs as expected. I've also tried using bass.dll in the same way and have similar results. I've been staring at this problem for hours and have no idea what I could be doing wrong. If anyone feels like taking a stab at this you can download the mod that I started and all other needed files here:
http://www.evillink.net/FMOD.zip
Any help would be greatly appreciated!