diff options
author | Christopher Faylor <me@cgf.cx> | 2001-04-16 03:27:16 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-04-16 03:27:16 +0000 |
commit | b0a50cf34c1646ca943983d7a34c57360ce062c1 (patch) | |
tree | a8f3a9042adc69c81af40cc88548e288c02d5b8f /winsup/cygwin/path.cc | |
parent | 9f42525632f6edb1ff93fba5a724b927dd983a19 (diff) | |
download | cygnal-b0a50cf34c1646ca943983d7a34c57360ce062c1.tar.gz cygnal-b0a50cf34c1646ca943983d7a34c57360ce062c1.tar.bz2 cygnal-b0a50cf34c1646ca943983d7a34c57360ce062c1.zip |
* 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/path.cc')
-rw-r--r-- | winsup/cygwin/path.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index 1bf126fe6..b7a6705a2 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -535,8 +535,9 @@ const char *windows_device_names[] = "\\dev\\pipew", "\\dev\\socket", "\\dev\\windows", - - NULL, NULL, NULL, + "\\dev\\dsp", + + NULL, NULL, "\\dev\\disk", "\\dev\\fd%d", @@ -602,6 +603,8 @@ get_device_number (const char *name, int &unit, BOOL from_conv) devn = FH_PTYM; else if (deveq ("windows")) devn = FH_WINDOWS; + else if (deveq ("dsp")) + devn = FH_OSS_DSP; else if (deveq ("conin")) devn = FH_CONIN; else if (deveq ("conout")) |