Patch for /dev/dsp to make ioctl SNDCTL_DSP_RESET respond immediately
Corinna Vinschen
vinschen@redhat.com
Tue Apr 13 09:41:00 GMT 2004
On Apr 11 22:59, Gerd Spalink wrote:
> ChangeLog for winsup/cygwin:
>
> 2004-04-11 Gerd Spalink <Gerd.Spalink@t-online.de>
> * fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Add optional boolean
> argument so that playing can be stopped without playing pending buffers.
> (fhandler_dev_dsp::ioctl): Stop playback immediately for SNDCTL_DSP_RESET.
> Do not reset audio parameters in this case.
> Add support for ioctl SNDCTL_DSP_GETISPACE.
> (fhandler_dev_dsp::Audio_out::emptyblocks): Now returns the number of
> completely empty blocks.
> (fhandler_dev_dsp::Audio_out::buf_info): p->fragments is now the number of
> completely empty blocks. This conforms with the OSS specification.
> (fhandler_dev_dsp::Audio_out::parsewav): Ignore wave headers that are not
> aligned on four byte boundary.
> (fhandler_dev_dsp::Audio_in::buf_info): New, needed for SNDCTL_DSP_GETISPACE.
>
> ChangeLog for winsup/testsuite:
>
> 2004-04-11 Gerd Spalink <Gerd.Spalink@t-online.de>
> * winsup.api/devdsp.c (forkrectest): Move synchronization with child
> so that test passes also under high CPU load.
> (forkplaytest): Ditto.
> (abortplaytest): New function to test ioctl code SNDCTL_DSP_RESET.
Appiled. Just, for the next time, please make sure that the ChangeLog
fits into 80 columns.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@cygwin.com
Red Hat, Inc.
More information about the Cygwin-patches
mailing list