Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-16 07:27:16 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-16 07:27:16 +0400
commitb0a50cf34c1646ca943983d7a34c57360ce062c1 (patch)
treea8f3a9042adc69c81af40cc88548e288c02d5b8f /winsup/cygwin/dtable.cc
parent9f42525632f6edb1ff93fba5a724b927dd983a19 (diff)
* autoload.cc: Add winmm functions needed by fhandler_dsp.cc.
* 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.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 4c39035f9..b67949faa 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -316,6 +316,9 @@ dtable::build_fhandler (int fd, DWORD dev, const char *name, int unit)
case FH_CLIPBOARD:
fh = new (buf) fhandler_dev_clipboard (name);
break;
+ case FH_OSS_DSP:
+ fh = new (buf) fhandler_dev_dsp (name);
+ break;
default:
/* FIXME - this could recurse forever */
return build_fhandler (fd, name, NULL);