View Full Version : FMOD again

12-26-2001, 12:43 PM
I know this is off-topic, but can someone explain to me how to get FMOD to play an mp3 or wav file in my programs?

This is the code I have tried which compiles but doesnt play at all:

//testing FMOD
if( ! FSOUND_Init( 44100, 32, 0 ) )
cout << "init returned false" << endl;
cout << "init returned true" << endl;
FMUSIC_MODULE* mod = FMUSIC_LoadSong( "testwav.wav" ); //try testwav.wav or testmp3.mp3
FMUSIC_PlaySong( mod );

PS I only post here cos you guys are helpful and the FMOD forum is useless http://www.opengl.org/discussion_boards/ubb/frown.gif

Leyder Dylan
12-27-2001, 07:04 AM

I've made a little example using FMOD under OpenGL.

Leyder Dylan
12-29-2001, 10:48 PM
I've upadted the program.

Now, I use the lastest version of FMOD 3.40