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 audiofile write problem
Page Index Toggle Pages: 1
ESS audiofile write problem (Read 338 times)
ESS audiofile write problem
Apr 27th, 2008, 7:59pm
 
Hi there.

We I run the audiofile_write example it does not write any file in to the sketch !?

I combined the write example with the audioinput example, to record mic input into a file and have it play back.

Only if i run the script as an application, files are being written in to the app folder. I noticed that if i now try to play that file it needs to be in a folder named data.

This is what I have to do (notice the files path):
...
myFile.open("data/out.aif",myStream.sampleRate,Ess.WRITE);

...
myChannel=new AudioChannel("out.aif");

both file references are the same file. is audiochannel automatically looking for files in the data folder?

stephan.
Page Index Toggle Pages: 1