Using Quicktime to record sounds in Livecode
Alejandro Tejada
capellan2000 at gmail.com
Thu Mar 22 16:09:25 EDT 2012
Hi All,
Recently, I have been struggling in Windows XP with
sound recording in LiveCode using QuickTime 7.7.1
When I start recording, I see that hard disk is writing
but when I click the button "Stop recording", there is
no file written.
This is the code that I am using, copied from a forum
post. Please, test in your own setup and post your results
using the development environment and the more recent version of
StackRunner:
http://www.sonsothunder.com/devres/revolution/downloads/StackRunner.htm
Thanks in advance!
Al
----------------------------------------------
Button "Record Sound":
on mouseUp
set the recordInput to "dflt" -- default
-- other options are imic (internal microphone) emic (external
microphone), etc
set the recordRate to 48
put the platform into tPlatform
if tPlatform is "win32" then
set the recordFormat to "wave"
put ".wav" into tSuffix
else
set the recordFormat to "aiff"
put ".aif" into tSuffix
end if
set the playLoudness to 100
record sound file (specialfolderpath("desktop") & "/SoundTest" & tSuffix)
end mouseUp
Button "Stop Recording"
on mouseup
stop recording
end mouseup
--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Using-Quicktime-to-record-sounds-in-Livecode-tp4496711p4496711.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the use-livecode
mailing list