For a much higher level interface, you may want to look at the MCI command
strings.
The calls can be as simple as: (untested)
mciSendString( "record waveaudio alias a", null, 0, IntPtr.Zero);
mciSendString( "pause a", null, 0, IntPtr.Zero);
mciSendString( "save waveaudio c:\foo.wav", null, 0, IntPtr.Zero);
mciSendString( "close a", null, 0, IntPtr.Zero);
This is using command strings, but there is also a more API-like message
interface.
You can google for the correct imports, command reference, etc.
For simple stuff, this could be sufficient for you. (You can also access the
cdplayer, midi file and other devices this way.)
m
"Peter Bromberg [C# MVP]" <pb*******@yahoo.nospammin.com> wrote in message
news:C8**********************************@microsof t.com...
Here is a C# implementation of a wrapper using Ianier Munoz' WaveOut
class:
http://www.eggheadcafe.com/articles/20050611.asp
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
"Andrea" wrote:
Hello All,
I need to record voice from a mic, in the simplest way, any idea???
tks a lot
Andrea