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.
Page Index Toggle Pages: 1
Ess uses 100% CPU? (Read 620 times)
Ess uses 100% CPU?
Mar 12th, 2007, 11:11am
 
Hello!

I'm trying to write an applet that records audio when you press a button. It works fine but when i call stop() on the AudioInput the sketch uses 100% CPU.


Here's the code to reproduce my problem:

import krister.Ess.*;

void setup(){
 size( 320, 240 );
 frameRate( 1 );
 Ess.start( this );
 
 AudioInput mic = new AudioInput();
 mic.start();  // cpu is okay with just this line
 mic.stop();   // 100% cpu as soon as it gets here

}


Does anybody know what this could be?
(I'm running linux with alsa sound... could the platform be a problem?)


hansi.
Page Index Toggle Pages: 1