This may not even be related to OprnGL, but I have a bunch of .wav’s I want to put into my C++ program that uses OpenGL.
If you are programming under windows, I think the Microsoft command is playsound or something like that for a wav file.
Else you can use some sound library, like fmod or SDL to play a sound
Originally posted by Andrewinator:
This may not even be related to OprnGL, but I have a bunch of .wav’s I want to put into my C++ program that uses OpenGL.
Hi,
PlaySound can’t play multi sound at the same time. Try on OpenAL if you need to it be advance.
I’d really recommend using BASS at :
http://www.un4seen.com
OpenAL ? … well it was too much like hard work and I never got it to work properly … good at crashing systems though … but then that’s more likely to be my code !
BASS isn’t a cheap option at about $100 if you’re releasing it as shareware … commercial license is $1000 … so a struggle with OpenAL might be a better option !
Andrew
Just use FMOD (fmod.org)
a free API for sound playback (.wav/.mp3/.ogg for amongst others)
You may even distribute your application/game/demo as long as you make no money for it (you then have to license it)