1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$NetBSD: patch-ad,v 1.5 2005/12/05 20:50:16 rillig Exp $
--- sound.c.orig 2001-11-11 23:05:37.000000000 -0800
+++ sound.c
@@ -57,6 +57,12 @@
# include <machine/soundcard.h>
#endif
+#ifdef __NetBSD__
+# define USE_DSP
+# include <sys/ioctl.h>
+# include <soundcard.h>
+#endif
+
#ifndef DEV_SOUND
# define DEV_SOUND "/dev/audio"
#endif
@@ -235,7 +241,7 @@ void play_sync(fd)
{
if (sound_debug >= 2)
fputs("sync", stderr);
- ioctl(fd, SNDCTL_DSP_SYNC);
+ ioctl(fd, SNDCTL_DSP_SYNC, 0);
if (sound_debug >= 2)
fputs(" ", stderr);
}
@@ -464,7 +470,7 @@ void decide_midi_player()
char *midilist[] = {
"/usr/bin/midiplay", "",
"/usr/bin/playmidi", "",
- "/usr/local/bin/timidity", "-idq",
+ "XXXPREFIXXXX/bin/timidity", "-idq",
NULL
};
|