record sound file select default source

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

record sound file select default source

Post by reelstuff » Wed Aug 29, 2007 4:17 pm

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

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Aug 29, 2007 5:34 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

reelstuff
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 254
Joined: Mon Apr 16, 2007 12:06 am
Contact:

Post by reelstuff » Wed Aug 29, 2007 7:35 pm

Thanks, I will play around with that and see what I can do.

Post Reply