endo
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;
}
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
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