* 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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user