PDA

View Full Version : how do i put sound in my program?



Andrewinator
01-26-2004, 02:29 PM
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.

nexusone
01-26-2004, 02:34 PM
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.

cwc36
01-26-2004, 10:27 PM
Hi,

PlaySound can't play multi sound at the same time. Try on OpenAL if you need to it be advance.

Andrew Jameson
01-27-2004, 01:46 AM
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

01-27-2004, 05:42 AM
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)