I’ve never used audio APIs before and I have recently been learning OpenGL and want to include some sound. FMOD was recommended and so I downloaded fmodapi340.zip
Can anyone tell me the basic steps required to get some sound up and running in my programs? I had a brief play around with some code and looked at the example but am still lost? The code I have compiles w/o errors but doesnt appear to play any sound.
This is the code I used to try and play an mp3 or wav file:
[code:zcmjfy4n] FSOUND_Init( 44100, 32, 0 )
FMUSIC_MODULE* mod = FMUSIC_LoadSong( "testwav.wav" ); //try testwav.wav or testmp3.mp3 FMUSIC_PlaySong( mod );
- endo asked 17 years ago
- You must login to post comments
Please login first to submit.