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 › Simple question i guess
Page Index Toggle Pages: 1
Simple question i guess (Read 381 times)
Simple question i guess
Sep 1st, 2008, 6:22pm
 
I'm trying to load a sound with Minim using an AudioSnippet. Lets say if you press a button, the sound should play. The problem is, if you press the button again, nothing happens anymore. It only works once. What should I do?
Re: Simple question i guess
Reply #1 - Sep 1st, 2008, 7:34pm
 
Use rewind() before play() the second and the other time
Re: Simple question i guess
Reply #2 - Sep 2nd, 2008, 12:10pm
 
So, it's that simple!
Thnx, works now.
Page Index Toggle Pages: 1