Click to See Complete Forum and Search --> : Constant Sound -


.pcbrainbuster
November 17th, 2007, 08:49 AM
Sup dudes,

How do I keep a constant sound going? For example when the user holds down the left mouse button the sound starts and doesn't go away until he/she releases it.

Note : The sound is only 0.35 seconds and I need to repeat itself over and over again until you know...

Thanks.

golanshahar
November 17th, 2007, 04:13 PM
What kind of sound? are you playing a wav file? or you using ::Beep() api?

Cheers

.pcbrainbuster
November 17th, 2007, 04:41 PM
Well that would be *.wav, BTW I'm using PlaySound.

Thanks.

golanshahar
November 18th, 2007, 11:50 AM
If you using ::PlaySound() you can use the SND_LOOP, BTW its all written in MSDN (http://msdn2.microsoft.com/en-us/library/ms712879.aspx).

Cheers

.pcbrainbuster
November 18th, 2007, 12:40 PM
RESOLVED!

Thanks.

golanshahar
November 20th, 2007, 02:24 PM
You are welcome :wave:

Cheers