Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 3 of 3

Thread: FMOD again

  1. #1
    Intern Contributor
    Join Date
    Jan 2002
    Posts
    52

    FMOD again

    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:

    Code :
    	//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

  2. #2
    Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    486

    Re: FMOD again

    Hi,

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

  3. #3
    Member Regular Contributor
    Join Date
    Jul 2000
    Location
    Arlon, Belgium
    Posts
    486

    Re: FMOD again

    I've upadted the program.

    Now, I use the lastest version of FMOD 3.40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •