delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/09/12:20:24

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.0.1.1.0.20040309121553.03d347b8@127.0.0.1>
X-Sender:
Date: Tue, 09 Mar 2004 12:17:46 -0500
To: fabrizio DOT ge AT tiscali DOT it, cygwin AT cygwin DOT com
From: Larry Hall <cygwin-lh AT cygwin DOT com>
Subject: Re: SNDCTL_DSP_CHANNELS ioctl not implemented
In-Reply-To: <4034E3090003002F@mail-4.tiscali.it>
References: <4034E3090003002F AT mail-4 DOT tiscali DOT it>
Mime-Version: 1.0

At 03:30 AM 3/9/2004, you wrote:
>Hello.
>
>I compiled a program intended for Unix on Cygwin. It has a slight problem:
>sound does not work because the program tries to call the SNDCTL_DSP_CHANNELS
>ioctl on /dev/dsp, and it fails.
>
>Looking at the source code, that ioctl is not implemented in fhandler_dsp.cc,
>although it is defined in the header file.
>
>fhandler_dsp.cc implements a similar ioctl, SNDCTL_DSP_STEREO, which takes
>the arguments, increments it by 1 and sets the variable audiochannels_ to
>the result. Maybe SNDCTL_DSP_CHANNELS would be identical, just without the
>increbent by 1, but I am no expert so I cannot be sure.
>
>Is it possible to implement SNDCTL_DSP_CHANNELS in future versions of Cygwin?


Sure, if the underlying capabilities of Windows supports it.  Care to submit
a patch to implement it?  


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


--
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