how can i put non beep sound in my program
Printable View
how can i put non beep sound in my program
Can you explain a bit more? Do you want your program to create a beep or does it beep and you want to eliminate it? :ehh:
i want to make it so that when i shoot a machine gun, i can hear a machine gun sound which i already have saved on my computer
So I assume it's a wav file or something? Try searching for the sndPlaySound API.
If you want to play only one sound without any mixing of two or more sounds, then the sndPlaySound API will be sufficient enough.
However, if you want to play more than one sound at the same time or play music with sounds going on at the same time, use DirectX's DirectSound for the wav's and DirectShow for the mp3's. You can even do 3D directional sound too. ;)
You can find the DirectSound stuff here:
http://externalweb.exhedra.com/Direc...TUT_DX8_DA.asp
and the DirectShow stuff here:
http://externalweb.exhedra.com/Direc...TUT_DX8_DS.asp