PDA

View Full Version : FMOD again



endo
12-26-2001, 01: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;
}
else
{
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, 08:04 AM
Hi,

I've made a little example using FMOD under OpenGL.
http://ibelgique.ifrance.com/Slug-Production/

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

Now, I use the lastest version of FMOD 3.40