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 › ESS repeated sample playback problem
Page Index Toggle Pages: 1
ESS repeated sample playback problem (Read 1357 times)
ESS repeated sample playback problem
Nov 14th, 2005, 5:52pm
 
i'm probably missing something here but why won't this play my sample repeatedly? it plays only once...

import krister.Ess.*;

Channel snare;

void setup()
{
 size( 200, 200 );
 background( 255 );
 
 Ess.start( this );
 
 framerate( 24 );

 snare = new Channel( "snare.wav" );
}

void draw()
{
 if ( snare.state == Ess.STOPPED )
   snare.play();
}
Re: ESS repeated sample playback problem
Reply #1 - Nov 17th, 2005, 2:46am
 
nevermind.
fixed it.
have to explicitely call channel.stop() before you play it again (!?!)
Re: ESS repeated sample playback problem
Reply #2 - Dec 2nd, 2005, 6:31pm
 
sounds like a bug. can you email me more info?

thanks, krister
Re: ESS repeated sample playback problem
Reply #3 - Dec 3rd, 2005, 6:40pm
 
it's identical to the PSound bug/issue that was fixed in rev 0098. just has to do with how sun has the java sound api set up versus how people want to use it. check the diffs on PSound from dev.processing.org/source between the two releases.
Page Index Toggle Pages: 1