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 › How do I stream sound to disk for long recording
Page Index Toggle Pages: 1
How do I stream sound to disk for long recording? (Read 834 times)
How do I stream sound to disk for long recording?
Jan 6th, 2010, 9:23am
 
Hi,

I'm trying to record my lecture with minim and I found that minim can't record long recordings. I'm trying to record 5-10min at a time for each slide I'm going to explain or formulas I write on the board. I found an old post about the same problem and the author of the minim suggested stream audio to disk but the post thread didn't really discuss how to stream audio to disk. The recordLineIn example is buffered (unknown amount of buffer). How do I start from that example to stream audio to disk so I don't have to worry about memory running out? Thank you!
Re: How do I stream sound to disk for long recording?
Reply #1 - Jan 7th, 2010, 11:26pm
 
I'll just answer this myself in case someone else is also looking for this obvious answer:
 recorder = minim.createRecorder(in, "a.wav", false);
the false disables buffering in memory so sound is streamed to hard drive as is is recorded. I wonder why such an obvious thing is not clearly mentioned in the document.
Here's the document: "buffered - whether or not to use buffered recording "
Page Index Toggle Pages: 1