I have been struggling to get a stack to record audio on the Windows platform. This is as far as I can get trying to interpret the dictionary settings but as it is writ, it's causing LC 9.6.0 (DP4) Indy to crash. Any help appreciated.
Code: Select all
on mouseUp
put the cUserDefinedRecordingFolder of this card into tUserFolder
## User did not define a folder yet:
if there is not a folder tUserFolder then
answer folder "Select a folder for the recordings:"
if the result is cancel then
exit to top
end if
## We store the folder also in a custom property:
set the cUserDefinedRecordingFolder of this stack to IT
## We need this in this script:
put it into tUserFolder
end if
set the recordFormat to "wav"
ask "Please name the recording:"
if it = empty then
exit to top
end if
put it into tUserDefinedName
put tUserFolder & "/" & tUserDefinedName & ".wav" into tFile
cameraControlCreate "MyCamera"
cameraControlSet "MyCamera", "audioDevice", "default"
cameraControlDo "MyCamera", "startRecording", tFile
end mouseUp