I am developing a language learning program including a speech lab where you can record your own voice.
When I switched over to LC 7, I found that the simple recording of a wave file in Windows is not working any more. Can anybody confirm that?
I made a simple test app including only a stack and a button with the following script. (It is supposed to record the mic as long as the button is being pressed):
Code: Select all
on mousedown
   set the dontUseQT to false
   set the recordFormat to "wave"
   set the recordCompression to "raw "
   set the recordSampleSize to 16
   set the recordChannels to 1 
   set the recordRate to 44.1
   set the defaultFolder to specialFolderPath("Temporary")
   record sound file "test.wav"
end mousedown
on mouseup
   stop recording
end mouseup
It writes a tmp-file that is growing in size, that means it is actually recording, but the tmp-file disappears after the recording and no WAV or whatsoever turns up.
Does anybody know a workaround?
Happy for any answer - my deadline is soon, and this is a major problem...
Kroka
