delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/01/06/19:34:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 6 Jan 2004 19:34:36 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: kaiduan xie <kaiduanx AT yahoo DOT ca>
cc: cygwin AT cygwin DOT com
Subject: Re: How to access soundcard in cygwin
In-Reply-To: <20040107000550.89136.qmail@web41406.mail.yahoo.com>
Message-ID: <Pine.GSO.4.56.0401061913560.7915@slinky.cs.nyu.edu>
References: <20040107000550 DOT 89136 DOT qmail AT web41406 DOT mail DOT yahoo DOT com>
MIME-Version: 1.0

On Tue, 6 Jan 2004, kaiduan xie wrote:

> Hi, all,
>
> I am going to port a Linux program that read/write the
> soundcard with OSS driver to Cygwin. Can anyone tell
> me if it is possible to use the OSS API as in Linux to
> read/write the soundcard?

Depends on what the OSS API does.  AFAIK, nobody released an OSS (whatever
that is) library for Cygwin, so I guess the answer is "no".  Whether it's
possible to port the OSS library to Cygwin remains to be seen...  FWIW,
/dev/dsp *is* partially implemented in Cygwin.

> If not, how to do that in Cygwin? Thanks.

How to do what?  Access the soundcard?  Try 'cat a.wav > /dev/dsp' to
write to the soundcard.  AFAICS in the code, the 'read()' method is
dummied out, so I guess it's not possible to read from the soundcard
(i.e., record from the microphone).  This guess is confirmed by
<http://cygwin.com/ml/cygwin/2002-07/msg00628.html>.

<http://cygwin.com/acronyms/#PTC>.

You're welcome to try to add the recording (i.e., reading) support to
fhandler_dsp.cc in the Cygwin sources.  There was some discussion on
cygwin-patches that may point you in the right direction (notably
<http://cygwin.com/ml/cygwin-patches/2002-q3/msg00112.html>).

HTH,
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019