Page 1 of 1

record sound (to RAM vice file)

Posted: Thu Mar 19, 2009 10:16 pm
by edljr
I developed an app that includes the ability for a user to record and playback their voice (language learning). I put the file in a directory relative to the standalone application. This works well with both Mac and Windows.

If the program is run from a CD-ROM, there is no ability to save files relative to the app. Is there a way to save the recording to RAM vice a file?

Thanks in advance.

Posted: Fri Mar 20, 2009 7:38 am
by Janschenkel
You can either ask the user where he/she wants to save the recorded audio. If the goal is not for the user to keep thse files, you could always record it to a temporary file - see also the tempName function to get a unique name for your file.

HTH,

Jan Schenkel.

tempName function

Posted: Fri Mar 20, 2009 2:12 pm
by edljr
Jan,

I tested this on a Mac (OS X) and PC (Vista Ultimate) and it works like magic. It even saves me from having to test which operating system the user has.

I wish I could buy you a latte.

Thanks much,
Ed