* 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.
This commit is contained in:
Christopher Faylor
2001-04-16 03:27:16 +00:00
parent 9f42525632
commit b0a50cf34c
8 changed files with 1979 additions and 11 deletions

View File

@@ -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"))