This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error writing to /dev/dsp.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]