OSDN Git Service

* fhandler_dsp.cc (fhandler_dev_dsp::Audio_out::stop): Add optional
authorcorinna <corinna>
Tue, 13 Apr 2004 09:38:32 +0000 (09:38 +0000)
committercorinna <corinna>
Tue, 13 Apr 2004 09:38:32 +0000 (09:38 +0000)
commita4220cb45582dc4aa274a8272b7d7ec40f626718
treeb6c9ea165290e1ea396b8ed6b4d3deee573b7cde
parenta2566da7eccea4c6aa664f5a6615aa6816e9dc28
* 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.
winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_dsp.cc