Random Audio Recording Error on Win32 Player
Posted: Mon May 07, 2012 4:16 am
After years of providing programs for special needs students I was just made aware of my programs failing at random times, making it difficult to debug.
It only happens on Windows machines and not at the same location. The Mac player works fine.
User get an error box- "Revolution Engine for Win32 has encountered a problem and needs to close. We are sorry for the inconvenience."
I am using the REV Player Engine 3.0.0 Build 750 and not a standalone because the same stack need to run on Macs and Pcs.
I am testing it now on a Macbook pro with VMware Fusion.
If a scripter with PC access has time to put this script into a button and try recording, if you have time, I would appreciate feedback on why it fails.
The programs have numerous places for students to record their ideas. I have found the problem occurs whether the script is on multiple buttons or just one.
I have distilled the script down to the basics to eliminate other scripting factors.
All you should need to do is hold the mouse down on the button to record. It should repeat back on mouseUp.
It rarely happens the first time but always randomly within 15 attempts.
on mouseDown
if there is an audioClip "test" then stop playing audioClip "test"
set the recordFormat to "wave"
set the recordSampleSize to 16
set the recordChannels to 1
set the recordRate to 44.1
record sound file "Test"
end mouseDown
on mouseUp
wait 1 second
stop recording
if there is an audioClip "test" then delete audioClip "test"
if there is a file "test" then
import audioClip from file "test"
end if
play audioClip "test"
end mouseUp
Thanks,
Bill
It only happens on Windows machines and not at the same location. The Mac player works fine.
User get an error box- "Revolution Engine for Win32 has encountered a problem and needs to close. We are sorry for the inconvenience."
I am using the REV Player Engine 3.0.0 Build 750 and not a standalone because the same stack need to run on Macs and Pcs.
I am testing it now on a Macbook pro with VMware Fusion.
If a scripter with PC access has time to put this script into a button and try recording, if you have time, I would appreciate feedback on why it fails.
The programs have numerous places for students to record their ideas. I have found the problem occurs whether the script is on multiple buttons or just one.
I have distilled the script down to the basics to eliminate other scripting factors.
All you should need to do is hold the mouse down on the button to record. It should repeat back on mouseUp.
It rarely happens the first time but always randomly within 15 attempts.
on mouseDown
if there is an audioClip "test" then stop playing audioClip "test"
set the recordFormat to "wave"
set the recordSampleSize to 16
set the recordChannels to 1
set the recordRate to 44.1
record sound file "Test"
end mouseDown
on mouseUp
wait 1 second
stop recording
if there is an audioClip "test" then delete audioClip "test"
if there is a file "test" then
import audioClip from file "test"
end if
play audioClip "test"
end mouseUp
Thanks,
Bill