summaryrefslogtreecommitdiff
path: root/audio/tracker/patches/patch-ad
blob: c605d60e064cc8a637edbdb43203d47be05073be (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
$NetBSD: patch-ad,v 1.2 1998/08/07 10:36:18 agc Exp $

diff -u -r ../../work/tracker/Arch/PCux/audio.c ./Arch/PCux/audio.c
--- ../../work/tracker/Arch/PCux/audio.c	Thu Oct 30 00:58:14 1997
+++ ./Arch/PCux/audio.c	Thu Oct 30 00:46:12 1997
@@ -28,10 +28,18 @@
 #include "/usr/src/linux/drivers/sound/soundcard.h"
 #else
 #ifndef __FreeBSD__
+#ifdef __NetBSD__
+#include <sys/ioctl.h>
+#include <soundcard.h>
+#define DEV "/dev/audio"
+#else
 /*	This should be sys/soundcard.h	*/
 #include <sys/soundcard.h>
+#define DEV "/dev/dsp"
+#endif
 #else
 #include <machine/soundcard.h>
+#define DEV "/dev/dsp"
 #endif
 #endif
 
@@ -53,7 +61,7 @@
 	int buf_max;
 	unsigned long possible, current;
 
-   audio = open("/dev/dsp", O_WRONLY, 0);
+   audio = open(DEV, O_WRONLY, 0);
    if (audio == -1)
 		end_all("Error opening audio device");
 
diff -u -r ../../work/tracker/Makefile ./Makefile
--- ../../work/tracker/Makefile	Thu Oct 30 00:58:14 1997
+++ ./Makefile	Thu Oct 30 01:01:52 1997
@@ -175,6 +175,15 @@
 UI_freebsd = Unix/
 SHELL_freebsd = /bin/sh
 
+CFLAGS_netbsd = -O2 -funroll-loops -finline-functions
+LIBS_netbsd = -lm -lossaudio
+AUDIODIR_netbsd=PCux/
+CONFIG_netbsd = PCux/netbsd_
+O_netbsd = .o
+EXE_netbsd = 
+UI_netbsd = Unix/
+SHELL_netbsd = /bin/sh
+
 CFLAGS_aix = -O
 LIBS_aix = -lm
 AUDIODIR_aix = Aix/
@@ -344,11 +353,7 @@
 bug2:
 	lclint -skipansiheaders bug.c
 
-	
-	
-	
 
 export: Docs/tracker.doc
 	-rm tracker*.tgz
 	cd ..; tar cvozf tracker/tracker-$(VERSION).tgz -T tracker/arc.list
-