Is "record sound" broken in OS 10.7.2?

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

Is "record sound" broken in OS 10.7.2?

Post by richardmac » Thu Feb 09, 2012 5:22 pm

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.

thedoglett
Posts: 2
Joined: Wed Jan 25, 2012 4:18 pm

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

Post by thedoglett » Fri Feb 10, 2012 3:34 pm

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.

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

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

Post by Klaus » Fri Feb 10, 2012 4:03 pm

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

richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

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

Post by richardmac » Sat Feb 11, 2012 7:11 pm

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?

richardmac
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 211
Joined: Sun Oct 24, 2010 12:13 am

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

Post by richardmac » Sat Feb 11, 2012 7:19 pm

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.

Post Reply