28 lines
611 B
Text
28 lines
611 B
Text
$NetBSD: patch-aa,v 1.3 1999/03/28 20:08:08 rh Exp $
|
|
|
|
--- mpegsound/rawplayer.cc.orig Fri Mar 6 18:43:55 1998
|
|
+++ mpegsound/rawplayer.cc Sun Mar 28 19:44:54 1999
|
|
@@ -13,7 +13,11 @@
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
#include <sys/ioctl.h>
|
|
+#ifdef __NetBSD__
|
|
+#include <soundcard.h>
|
|
+#else
|
|
#include <sys/soundcard.h>
|
|
+#endif
|
|
|
|
#include "mpegsound.h"
|
|
|
|
@@ -24,7 +28,11 @@
|
|
#define IOCTL(a,b,c) (c = ioctl(a,b,c) )
|
|
#endif
|
|
|
|
+#ifdef __NetBSD__
|
|
+char *Rawplayer::defaultdevice="/dev/audio";
|
|
+#else
|
|
char *Rawplayer::defaultdevice="/dev/dsp";
|
|
+#endif
|
|
|
|
/* Volume */
|
|
int Rawplayer::setvolume(int volume)
|