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
Sonia performance (Read 1127 times)
Sonia performance
Dec 6th, 2005, 8:00pm
 
Hi

A couple of questions about the Sonia library.

Does the total number of existing Sample objects, which are NOT playing, affect system performace (I mean do they consume CPU time)?

Apart from lowering the sampling rate (which I already did), is there some other way to increase performance at the expense of sound quality or reliability? For example, I dunnow, some sort of lowering the sound engine priority so that if cpu power is not sufficient for everything sound will be the first thing to be affected?

Maybe I am speaking nonsense... I'm trying to add a very minimal sound to a project which is already quite CPU-intensive; it doesn't have to sound great, just to sound something Wink

Thanks
Teo
Re: Sonia performance
Reply #1 - Dec 11th, 2005, 2:33pm
 
Hi Teo,

you can unload samples from jsyn by adding a timer parameter to the stop() command: mySample.stop(10) will unload the sample 10 'ticks' after it is stopped. This helps with optimizing cpu power.

Other than that, the jsyn engine is operating on its own thread, but it is not prioritized. I'll look into this option for future releases. Still, heavy cpu programs will probably degrade both graphics and sound playback.
Page Index Toggle Pages: 1