summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_dsp.cc
Commit message (Collapse)AuthorAgeFilesLines
* * fhandler_dsp.cc (fhandler_dev_dsp::ioctl): Return 0 for success.Christopher Faylor2001-06-291-6/+6
|
* * mmap.cc: Clean up *ResourceLock calls throughout.Christopher Faylor2001-06-261-4/+4
| | | | | | | * thread.cc (pthread_cond::TimedWait): Check for WAIT_TIMEOUT as well as WAIT_ABANDONED. (__pthread_cond_timedwait): Calculate a relative wait from the abstime parameter.
* * exceptions.cc (handle_exceptions): Bump repeat count for debugging kick out.Christopher Faylor2001-05-241-11/+21
| | | | | | | | | | * fhandler.h (fhandler_dev_dsp): Add a fixup_after_exec. * fhandler_dsp.cc (class Audio): Add TOT_BLOCK_SIZE to enum. (operator new): New. (bigwavebuffer): Declare using TOT_BLOCK_SIZE to avoid buffer overruns. (Audio::Audio): Optimize slightly. (fhandler_dev_dsp::open): Allocate s_audio using static buffer. (fhandler_dev_dsp::fixup_after_exec): New function. Ditto.
* * fhandler_dsp.cc: Reformat to GNU standards.Christopher Faylor2001-05-201-282/+287
| | | | | (s_audio): Change to a pointer throughout. (fhandler_dev_dsp::open): Initialize s_audio, if required.
* * fhandler_dsp.cc: Improved handling of 8 bit playback modes.Corinna Vinschen2001-04-251-3/+25
| | | | Put in mock support for SNDCTL_DSP_SETFRAGMENT.
* Remove trailing underscore from fhandler_base and friends, throughout.Christopher Faylor2001-04-241-3/+6
| | | | | | | | | | | | | | | | | | | | | | * fhandler.h (fhandler_base::set_open_status): New method. Stores original open status. (fhandler_base::get_open_status): New method. Retrieves original open status. (fhandler_base::reset_to_open_binmode): New method. * fhandler.cc (fhandler_base::open): Save open status. (fhandler_base::init): Ditto. * fhandler_clipboard.cc (fhandler_clipboard::open): Ditto. * fhandler_console.cc (fhandler_console::open): Ditto. * fhandler_dsp.cc (fhandler_dsp::open): Ditto. * fhandler_dev_mem.cc (fhandler_dev_mem::open): Ditto. * fhandler_dev_random.cc (fhandler_dev_random::open): Ditto. * fhandler_serial.cc (fhandler_serial::open): Ditto. * fhandler_tty_slave.cc (fhandler_tty_slave::open): Ditto. * fhandler_tty_master.cc (fhandler_tty_master::open): Ditto. * fhandler_dev_zero.cc (fhandler_dev_zero::open): Ditto. * syscalls.cc (setmode): Rework so that 0 mode value causes reversion to open state. * fhandler_tty_slave.cc (fhandler_tty_slave::read): Use correct multiplier when converting from deciseconds to milliseconds.
* * autoload.cc: Add winmm functions needed by fhandler_dsp.cc.Christopher Faylor2001-04-161-0/+604
* fhandler_dsp.cc: New file. Implements OSS like /dev/dsp. * include/sys/soundcard.h: New file. User land includes for OSS /dev/dsp. * fhandler.h: Add new class fhandler_dev_dsp and a FH_OSS_DSP definition. * dtable.cc (dtable::build_fhandler): Allow creation of the /dev/dsp device. * path.cc (windows_device_names): Add /dev/dsp into list of device names. * Makefile.in (DLL_OFILES): Add fhandler_dsp.o.