Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 9 Mar 2004 09:30:49 +0100 Message-ID: <4034E3090003002F@mail-4.tiscali.it> From: fabrizio DOT ge AT tiscali DOT it Subject: SNDCTL_DSP_CHANNELS ioctl not implemented To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i298egd7020924 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? __________________________________________________________________ Tiscali ADSL SENZA CANONE: Attivazione GRATIS, contributo adesione GRATIS, modem GRATIS, 50 ore di navigazione GRATIS. ABBONARTI TI COSTA SOLO UN CLICK! http://point.tiscali.it/adsl/index.shtml -- 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/