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
sound length ? (Read 767 times)
sound length ?
Aug 8th, 2006, 9:35pm
 
hi,

i did some tests with the online examples and whenever i use longer soundfiles i get an java.lang.OutOfMemoryError. is there any way around that (besides giving processing a bit more memory) ? for testing i was just using the mono file "counting.aiff" in 22050 and made it 5 minutes long by copy and pasting.
same error. so can i only use short files ?

all the best

lia.-
Re: sound length ?
Reply #1 - Aug 9th, 2006, 9:22pm
 
hi lia,

the solution is to either stream the audio (off of disk or from the Web -- see the Ess examples) and process it in units, or increase your Java heap size.

k
Re: sound length ?
Reply #2 - Aug 10th, 2006, 1:07pm
 
hi k,

thanks for your answer!
but i can't find any example where you use an audio file offline from the disk, just waves and mp3s from online.
please point me out to some examples when i am just missint it.

tnx

lia.-
Page Index Toggle Pages: 1