Page 1 of 1

record sound file select default source

Posted: Wed Aug 29, 2007 4:17 pm
by reelstuff
Hello, I am trying to record a sound file from a microphone.

looking through the documentation, I found several topics but none that cover exactly how to setup and record the source for the Mic, I found set the recordInput to default, but it looks like I need to add something to allow the user to select the default from their system, after I record the file I want to save it to a new card, but for now I am just looking at getting a successful record state.

any help or suggestions would be appreciated thanks

Code: Select all

on mouseUp
  set the recordInput to "dflt"
record sound file ""
record sound file it
end mouseUp

Posted: Wed Aug 29, 2007 5:34 pm
by Mark
reelstuff,

Code: Select all

set the recordInput to "dflt"
put <a correct path to a file> into myPath
if there is a file myPath then delete file myPath
record sound file myPath
Best,

Mark

Posted: Wed Aug 29, 2007 7:35 pm
by reelstuff
Thanks, I will play around with that and see what I can do.