Hello I want to do a little testing/learning with FMOD, so I download the api and searched the internet and this forum for information.

I use Borland C++ Builder 6 and I included the fmod.h and the lib file (FMODBC.LIB). when I copy paste a simple script into my file

from gamedev.net:
[code:2zdeq5bn]#include <conio.h>

include "inc/fmod.h"


int main ()
// init FMOD sound system
FSOUND_Init (44100, 32, 0);

// load and play sample
handle=FSOUND_Sample_Load (0,"sample.mp3",0, 0, 0);
FSOUND_PlaySound (0,handle);

// clean up
FSOUND_Sample_Free (handle);

It won’t play the file. So i set a break point and walk trough the code-lines. I see that "handle" is getting a value (:017D7580) but the mp3 is never played…

So I test the same code with Visual C++, and there it does work….

What is wrong? what do I have to change to make it work with borland?

  • You must to post comments

you’re not waiting for the sound to play or end, you’re exiting the application straight away.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.