We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSound,  Music Libraries › Wav unwanted repetition
Page Index Toggle Pages: 1
Wav unwanted repetition (Read 657 times)
Wav unwanted repetition
Jan 9th, 2010, 6:47pm
 
Hello everyone. I started using minim recently in my game application and I got this problem...

There's a .wav sound that should trigger whenever an arrow key is pressed. It works fine when I test the game normally.

I'm using sound.trigger(); inside of my keyPressed() function.

The problem is that when I tried tapping the arrow keys franticly, at random,  Cheesy the sound seemed to be working fine, until I stopped pressing those keys, and noticed that the sound effect wouldn't stop playing in a loop, as if I was still pressing them repeatedly, with an interval of about 1 second between every repetition.

I'm new to programming and I rly don't know the right terms to describe my problem, but I'd be really grateful if someone could help me at this.
Page Index Toggle Pages: 1