* 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

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