Я пытаюсь записать аудиофайлы для эксперимента, который я создаю. Вот код, я использую:Ошибка Livecode -231 начиная запись
global gSubjectID
global recordcount
on mouseUp
set the recordFormat to "wave" -- or "wave" or "ulaw"
set the recordCompression to "raw "
set the itemDelimiter to "/"
get the effective fileName of this stack
set the defaultFolder to item 1 to -2 of it
if not (the hilite of me) then
if recordcount is 1 then
put gSubjectID & space & "Question 1.wav" into fld "recordFileName"
put fld "recordFileName" into sndName
# make sure there's a name
if sndName is empty then
exit mouseUp
end if
set the hilite of me to true
record sound file sndName
add 1 to recordcount
end if
end if
end mouseUp
Все, кажется, работает, микрофон включается, а затем выключается, когда я останавливаю запись с другой кнопкой.
Я добавил код
put the result
Для того, чтобы выяснить, почему это не работает, и я получил эту ошибку:
error -231 starting recording
Эта проблема не была решена на LiveCode форумах, поэтому я решил попробовать здесь.
Примечания: Quicktime 7.7.7/LiveCode версия функциональность 10
К сожалению, это не решило проблему. Я все еще получаю ошибку. Спасибо, что попробовали! – starfirescully