Page 1 of 1

Recording audio with LC 7.1.1

Posted: Wed Feb 24, 2016 4:34 pm
by asavoth
Greetings. I'm having trouble recording audio in the most recent stable version of LC. The syntax that I have been using in previous versions to record audio within my app doesn't seem to produce a file within the specified default folder. Have there been adjustments to the code syntax within this version? I am running OS 10.11.2 on a late 2013 Mac Pro, with a sennheiser headset. See below for the script that I am currently using on my record button. Any help would be greatly appreciated. Thank you.

on mouseUp
set the recording to true
set the recordFormat to wave
set the recordRate to 44.100
set the recordSampleSize to 16
set the recordCompression to raw
record sound test.wav
show button "Stop"
if the visible of button "Play" is true then hide button "Play"
end mouseUp