On 03/22/2012 10:09 PM, Alejandro Tejada wrote:

That's an "old chestnut" (will try to see about it this evening after work), but, while I am here this occurs to me:

How can one record sounds in Livecode on Linux (can one?) ?

If the answer to my question, Alejandro, is positive, maybe, just maybe, it might not be a bad idea to install some kind of Linux on another partition to XP, or get another machine running with Linux, and then use Livecode
over there for sound recording.

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.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to