This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Error writing to /dev/dsp.
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 14 May 2013 18:09:10 +0200
- Subject: Re: Error writing to /dev/dsp.
- References: <kmtkrj$vlj$1 at ger dot gmane dot org>
- Reply-to: cygwin at cygwin dot com
On May 14 17:22, michele.sanges wrote:
> Hi all,
> I wish report a problem regarding the use of /dev/dsp device.
>
> My program opens this device, then configures and writes a data
> stream in it.
>
> The write operation is made passing to the write() function a
> valid /dev/dsp file descriptor, as returned from the open
> function, the buffer data and its lenght.
>
> With the latest cygwin release (1.7.18-1), the write function
> crashes (segmentation fault) or doesn't return at
> all.
>
> With an old version (year 2011) it works without problems.
>
> Does someone has encountered this behavior?
Dunno what you're doing exactly, but this works with Cygwin 1.7.18:
$ cat /cygdrive/Windows/media/ding.wav > /dev/dsp
Can you provide a minimal, self-contained testcase in plain C, which
allows to reproduce the behaviour?
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple