summaryrefslogtreecommitdiff
path: root/games/fkiss/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'games/fkiss/patches/patch-ad')
-rw-r--r--games/fkiss/patches/patch-ad19
1 files changed, 9 insertions, 10 deletions
diff --git a/games/fkiss/patches/patch-ad b/games/fkiss/patches/patch-ad
index 8b53174dc22..69907d1464c 100644
--- a/games/fkiss/patches/patch-ad
+++ b/games/fkiss/patches/patch-ad
@@ -1,14 +1,13 @@
-$NetBSD: patch-ad,v 1.1.1.1 2002/07/14 09:40:30 rh Exp $
+$NetBSD: patch-ad,v 1.2 2003/12/03 23:45:29 ben Exp $
---- sound.c.orig Mon Oct 16 22:10:55 2000
+--- sound.c.orig 2000-10-16 22:10:55.000000000 -0700
+++ sound.c
-@@ -43,6 +43,13 @@
+@@ -43,6 +43,12 @@
# include <machine/soundcard.h>
#endif
+#ifdef __NetBSD__
+# define USE_DSP
-+# define DEV_SOUND "/dev/sound"
+# include <sys/ioctl.h>
+# include <soundcard.h>
+#endif
@@ -16,7 +15,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2002/07/14 09:40:30 rh Exp $
#ifndef DEV_SOUND
# define DEV_SOUND "/dev/audio"
#endif
-@@ -61,7 +68,7 @@
+@@ -61,7 +67,7 @@
#include "ulaw.h"
@@ -25,7 +24,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2002/07/14 09:40:30 rh Exp $
char *sound_device = DEV_SOUND;
int sound_debug = 1; /* debug information print level
* 0: print nothing, silent
-@@ -218,7 +225,7 @@
+@@ -218,7 +224,7 @@
{
if (sound_debug >= 2)
fputs("sync", stderr);
@@ -34,11 +33,10 @@ $NetBSD: patch-ad,v 1.1.1.1 2002/07/14 09:40:30 rh Exp $
if (sound_debug >= 2)
fputs(" ", stderr);
}
-@@ -639,6 +646,17 @@
-
+@@ -640,6 +646,17 @@
if (!sound_enable)
return 0;
-+
+
+ bufp = name;
+ while (strstr(bufp + 1, ".mid") != NULL) bufp = strstr(bufp + 1, ".mid");
+ while (strstr(bufp + 1, ".MID") != NULL) bufp = strstr(bufp + 1, ".MID");
@@ -49,6 +47,7 @@ $NetBSD: patch-ad,v 1.1.1.1 2002/07/14 09:40:30 rh Exp $
+ ks_system2(buf);
+ return 0;
+ }
-
++
bzero(&sf, sizeof(sf));
bzero(buf, sizeof(buf));
+ if (name == NULL) {