31 lines
603 B
Plaintext
31 lines
603 B
Plaintext
$OpenBSD: patch-src-sound_c,v 1.3 2002/03/21 02:18:21 jcs Exp $
|
|
--- src/sound.c.orig Wed Mar 20 20:06:22 2002
|
|
+++ src/sound.c Wed Mar 20 20:07:17 2002
|
|
@@ -5,7 +5,7 @@
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <sys/ioctl.h>
|
|
-#include <linux/soundcard.h>
|
|
+#include <soundcard.h>
|
|
#include <sys/time.h>
|
|
#include <signal.h>
|
|
#include <string.h>
|
|
@@ -14,7 +14,7 @@
|
|
#include "scav.h"
|
|
#include "sound.h"
|
|
|
|
-#define SOUNDDEV "/dev/dsp"
|
|
+#define SOUNDDEV "/dev/audio"
|
|
|
|
char dirlist[512];
|
|
|
|
@@ -207,7 +207,7 @@
|
|
|
|
void playsound(int n)
|
|
{
|
|
-char c;
|
|
+signed char c;
|
|
c=n;
|
|
write(soundwrite,&c,1);
|
|
}
|