Accessing the sound card and microphone

Dave Korn
Tue Jun 14 14:44:00 GMT 2005

----Original Message----
>Sent: 14 June 2005 13:29

> Hello,
> I have installed the latest version of cygwin on XP and it works fine.
> I'm trying to write a small C application that reads data from a
> Microphone.  Another application is attempting to write data to the sound
> card to be played.
> Does anyone know how to open a connection (file descriptor) to the
> microphone?

  It works the same as the dsp device under linux, so 

    fd = open ("/dev/dsp", O_RDWR); 

should work to a first approximation..... there's a testcase in the cygwin
source code that would serve as a good example, take a look here:

or to just download the latest version, you could run 

wget -O devdsp.c

at the cygwin shell prompt.

Can't think of a witty .sigline today....

Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list