record sound (to RAM vice file)

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Location: Tullahoma, Tennessee, United States
Contact:

record sound (to RAM vice file)

Post by edljr » Thu Mar 19, 2009 10:16 pm

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.

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Location: Aalst, Belgium
Contact:

Post by Janschenkel » Fri Mar 20, 2009 7:38 am

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.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Location: Tullahoma, Tennessee, United States
Contact:

tempName function

Post by edljr » Fri Mar 20, 2009 2:12 pm

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

Post Reply

Return to “Multimedia”