Page 1 of 1

Is "record sound" broken in OS 10.7.2?

Posted: Thu Feb 09, 2012 5:22 pm
by richardmac
I made a new stack, with two buttons. Button number one is:

Code: Select all

on mouseUp
      record sound file "/Users/admin/Desktop/my_new_sound_file"
end mouseUp
And button number two is:

Code: Select all

on mouseUp
   stop recording
end mouseUp
The first button will record the Mac's microphone to a file, and the second button stops recording. But when I listen back to the file that was recorded, it's scratchy and distorted.

Do I have the syntax wrong or is this a bug? I'm running Mac OS 10.7.2. Any help greatly appreciated.

Re: Is "record sound" broken in OS 10.7.2?

Posted: Fri Feb 10, 2012 3:34 pm
by thedoglett
Hi, (first time post here - hello all!) - I just tested your script on Mac OSX 10.7.3 and it worked fine - no distortion at all.

Re: Is "record sound" broken in OS 10.7.2?

Posted: Fri Feb 10, 2012 4:03 pm
by Klaus
Hi Richard,

short question: Do you play these recorded sounds with "play filename" or are you using a player object?

If the first, try the latter one :D
"record sound file ..." will not create files that are compatible with the "play soundname" command!


Best

Klaus

Re: Is "record sound" broken in OS 10.7.2?

Posted: Sat Feb 11, 2012 7:11 pm
by richardmac
thedoglett wrote:Hi, (first time post here - hello all!) - I just tested your script on Mac OSX 10.7.3 and it worked fine - no distortion at all.
Can you please tell me which version of LiveCode you're running?

Re: Is "record sound" broken in OS 10.7.2?

Posted: Sat Feb 11, 2012 7:19 pm
by richardmac
Klaus wrote:Hi Richard,

short question: Do you play these recorded sounds with "play filename" or are you using a player object?

If the first, try the latter one :D
"record sound file ..." will not create files that are compatible with the "play soundname" command!

Best

Klaus
Neither - I'm playing it back in the Finder. It plays back but the audio is crackly and slightly distorted. Note - I use my laptop's built in mic with GarageBand and Logic Pro 9 all the time, so it is definitely not a problem with my hardware. Just tested it right now to verify.

I then went in and did this:
set the recordFormat to "aiff"
set the recordCompression to "raw "

And then ran the command. Exact same results. Also tried playing it back in iTunes, same result. Crackly audio. Oh, and I also updated to OS 10.7.3 but it changed nothing.