Page 1 of 1

Recording a wave file directly to a stack on LiveCode?

Posted: Wed Jan 13, 2016 11:57 pm
by deeverd
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

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

Posted: Thu Jan 14, 2016 12:09 pm
by Klaus
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

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

Posted: Thu Jan 14, 2016 6:08 pm
by deeverd
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

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

Posted: Fri Jan 15, 2016 12:32 am
by deeverd
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

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

Posted: Fri Jan 15, 2016 12:40 am
by deeverd
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