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 › stopping audiosample trigger
Page Index Toggle Pages: 1
stopping audiosample trigger? (Read 566 times)
stopping audiosample trigger?
Feb 28th, 2009, 9:51pm
 
dear minim wizards, i call for your help again.

i'm using AudioSamples to load a bunch of sounds into a hashmap, retrieving them, and triggering them based on IDs associated with each sound.

so, i need a way to stop, or possibly pause, a trigger at any arbitrary time after it started playing. i could use .stop() , but i think that kills the object, and then i'd have to reload it again. is there a better way to do this? i've looked into using AudioPlayer instead, but it's not fast enough.

any ideas appreciated :)
/mushi
Re: stopping audiosample trigger?
Reply #1 - Mar 4th, 2009, 6:45pm
 
i been using minim around a few times and i stumbled with a bug on the retrigger where it overflows the sound buffer and stays playing after the triggering should be done with, not quite what you're experiencing i believe, but anyways, just to point that minim trigger aint all that trustworthy / recommendable.

been hacking solutions with audioplayer instead of audiosample, using loop() and pause() with well trimmed samples but it might not really work in some scenarios.. just 2 cents.
Page Index Toggle Pages: 1