How can i add sound?!
suppose i've a game in c++ (dev c++) and i would like to add sounds to the game. how can i do it?! Is there a difference between dev c++ to visual c++ 6.0 or to borland in this case?!How can i add sound!?
[209 byte] By [
ishaer12] at [2007-11-11 8:45:08]

# 1 Re: How can i add sound?!
Sound is not part of C++. Probably on windows you would use directx / directinput / directsound whatever the sound part is called. The calls to these librarys are the same in any compiler. You will have to research this & look at an example, the directx stuff is not simple.
jonnin at 2007-11-11 21:01:08 >

# 2 Re: How can i add sound?!
In windows, try
PlaySound("Kick.wav", NULL, SND_ASYNC | SND_FILENAME);
you can also use the switch | SND_LOOP to keep repeating the .wav file.
For more info about PlaySound, look at www.msdn.com.
Ives
Ives at 2007-11-11 21:02:09 >
