Recording audio with LC 7.1.1

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

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
asavoth
Posts: 1
Joined: Wed Feb 24, 2016 4:19 pm

Recording audio with LC 7.1.1

Post by asavoth » Wed Feb 24, 2016 4:34 pm

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

Post Reply