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 large sample array sound glitches
Page Index Toggle Pages: 1
ESS large sample array sound glitches (Read 523 times)
ESS large sample array sound glitches
Apr 1st, 2008, 11:34pm
 
hi

i want to load about 1200 samples in an array with ess. (each sample has about 1 seconds duration, all samples together about 93MB). it seems that when the application is running, it fills the ram and when it reaches 1GB the soundfiles are not playing clear anymore.
(i dont understand why 93mb of sound needs mor than 1GB of ram to play.)

is that a limitation in java (does it have a problems with more than 1GB in ram)?
is there a method in ess or java to clear the ram wich is used for the samples?
Re: ESS large sample array sound glitches
Reply #1 - Mar 24th, 2009, 4:31pm
 
If the samples are MP3s and you store the audiostream as an array which is uncompressed it can be way bigger then your source files.
Did you ran out of ram? (would give you an error)

would you mind sharing your sourcecode with me? I need to load a sample multiple times into an array with ESS (seems best for it) and would like to see how it's done.
Page Index Toggle Pages: 1