Recording a wave file directly to a stack on LiveCode?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
deeverd
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 165
Joined: Mon Jul 16, 2007 11:58 pm

Recording a wave file directly to a stack on LiveCode?

Post by deeverd » Wed Jan 13, 2016 11:57 pm

Hello Forum,

I'm building a program that allows users to make brief sound recordings (Windows ".wav") to basically make a series of oral notes. Is there a way of having the sound recording save a wave file directly to the stack they are using, rather than having to save it to their computer and re-import the wave file into their stack?

I've tried repeatedly looking at the documentation, even the documentation on the BYU site, I've tried Googling this forum to find something similar, but no luck so far.

I do have QuickTime 7 installed and am using Windows 10.

Thanks in advance for any advice.

Cheers,
deeverd

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Recording a wave file directly to a stack on LiveCode?

Post by Klaus » Thu Jan 14, 2016 12:09 pm

Hi deeverd,
deeverd wrote:Is there a way of having the sound recording save a wave file directly to the stack they are using, rather than having to save it to their computer and re-import the wave file into their stack?
no!

But you could record to -> specialfolderpath("temporary") to hide the file at least a bit.
Or use -> the tempname
as filename to record the sound, it is unlikely that the user will ever see that file, if that is what is worrying you :D

Best

Klaus

deeverd
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 165
Joined: Mon Jul 16, 2007 11:58 pm

Re: Recording a wave file directly to a stack on LiveCode?

Post by deeverd » Thu Jan 14, 2016 6:08 pm

Hi Klaus,

Dang. I was hoping there was a way but when you say "no," I believe it.

I like the temporary and tempname ideas though, although I'm really not all that concerned over the users seeing the audioClip file on their desktop. I was just looking for the convenience of having the stack with the controls that allowed the recording to be the same stack that also contained it afterwards.

Again, thanks for your help.

By the way, do you happen to know of any sample stacks that contain recorders? I searched through the sample scripts and stacks links on the toolbar (under "Help") but didn't see anything.

Cheers,
deeverd

deeverd
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 165
Joined: Mon Jul 16, 2007 11:58 pm

Re: Recording a wave file directly to a stack on LiveCode?

Post by deeverd » Fri Jan 15, 2016 12:32 am

Hello,

I think I may have found a sound recording stack, which I just discovered on a post from 2012. Here's what I found...

==================================

Re: Recording Audio (Again)
Postby Dixie » Sun Jan 08, 2012 11:33 pm

richardmac...

The rremicrophone external does allow you to record under liveCode.... and it works... :) I first had it working under 4.6.4 and everything was fine... After reading your post, I have just tested my stack that was built using 4.6.4 and the liveCodeSDK- R8 external package, but now using 5.0.2, and it is working without changing anything.

If you would like to see the stack then mail me at : john@ihouse.on-rev.com

be well

Dixie

==================================

Cheers,
deeverd

deeverd
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 165
Joined: Mon Jul 16, 2007 11:58 pm

Re: Recording a wave file directly to a stack on LiveCode?

Post by deeverd » Fri Jan 15, 2016 12:40 am

Better yet, I just found the forum link to where two versions of a sample stack are located. I'm pasting them right here in case they are ever needed by anyone else:

http://forums.livecode.com/viewtopic.php?f=7&t=12358

Cheers,
deeverd

Post Reply