31 - Intro To Audio, Dialog Final

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, asayd

Post Reply
jihem
Posts: 53
Joined: Sun Jul 28, 2013 3:21 pm

31 - Intro To Audio, Dialog Final

Post by jihem » Fri Sep 13, 2013 6:17 pm

Hi, ladies and gentlemen... Maybe you can do another good action today... Thanks for reading.

I have a recording issue on my Mac mini (OSX 10.8, LiveCode 6.1.1). In the assignment FinalDialog, I have to add an audio source selection because Mac mini doesn't have internal microphone (no I'm not joking). I made this stack "ht" & "tp" & ":" & slash & slash & "wdwave" & "." & "com" & slash & "jihem-FinalDialog.livecode" (but I have some recording issues). I made a test button with the following code : sometime it works... and sometime not. I really appreciate if you could help (I have no hair left on my head).

Have a good day

on mouseUp
put the effective filename of this stack into tPath
set itemDelimiter to slash
delete last item of tPath
put slash & "sample.wav" after tPath
delete file tPath
put tPath into field "fldPath"
set the hilite of me to true
set the recordFormat to "wave"
set the recordCompression to "raw "
set the recordInput to "emic"
record sound file tPath
if the recording then
wait 3 seconds
stop recording
play audioClip tPath
else
stop recording
answer "error"
end if
set the hilite of me to false
end mouseUp

Post Reply

Return to “LiveCode University”