29 lines
789 B
Text
29 lines
789 B
Text
$NetBSD: patch-bc,v 1.6 2012/02/18 23:01:47 asau Exp $
|
|
|
|
--- dlls/wineoss.drv/mmdevdrv.c.orig 2012-02-17 23:40:18.000000000 +0400
|
|
+++ dlls/wineoss.drv/mmdevdrv.c 2012-02-19 01:28:03.000000000 +0400
|
|
@@ -20,6 +20,12 @@
|
|
#define COBJMACROS
|
|
#include "config.h"
|
|
|
|
+#ifdef __NetBSD__
|
|
+#define SOUND_DEV "/dev/sound"
|
|
+#else
|
|
+#define SOUND_DEV "/dev/dsp"
|
|
+#endif
|
|
+
|
|
#include <stdarg.h>
|
|
#include <errno.h>
|
|
#include <limits.h>
|
|
@@ -316,9 +322,9 @@
|
|
const char *devnode;
|
|
|
|
if(flow == eRender)
|
|
- fd = open("/dev/dsp", O_WRONLY | O_NONBLOCK);
|
|
+ fd = open(SOUND_DEV, O_WRONLY | O_NONBLOCK);
|
|
else
|
|
- fd = open("/dev/dsp", O_RDONLY | O_NONBLOCK);
|
|
+ fd = open(SOUND_DEV, O_RDONLY | O_NONBLOCK);
|
|
|
|
if(fd < 0){
|
|
WARN("Couldn't open default device!\n");
|