summaryrefslogtreecommitdiff
path: root/audio/s3mod/files/patch-aa
blob: c6737c5f5da5bd16f5a21e005fee42ca893b443e (plain) (blame)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
diff -cr s3mod-v1.08A/Makefile s3mod-v1.08A.port/Makefile
*** ./Makefile	Mon Mar  7 05:54:59 1994
--- ..port/Makefile	Thu Mar  9 13:02:33 1995
***************
*** 30,36 ****
  # Uncomment these for Linux (DSP and GUS support)
  #
   COPTS	= -O2
!  DEFINES	= -DLINUX -DGUS
   INCLUDES	=
   LIBS	=
   LIBDIR	=
--- 30,36 ----
  # Uncomment these for Linux (DSP and GUS support)
  #
   COPTS	= -O2
!  DEFINES	= -DGUS
   INCLUDES	=
   LIBS	=
   LIBDIR	=
***************
*** 55,60 ****
--- 55,63 ----
  
  dep:
  	makedepend $(CFLAGS) $(LFLAGS) $(CFILES)
+ 
+ install:
+ 	install -m 555 s3mod /usr/local/bin 
  
  # DO NOT DELETE THIS LINE -- make depend depends on it.
  
diff -cr s3mod-v1.08A/gus.c s3mod-v1.08A.port/gus.c
*** ./gus.c	Mon Mar  7 05:19:56 1994
--- ..port/gus.c	Thu Mar  9 12:56:50 1995
***************
*** 20,27 ****
  /* See the associated README file for Thanks       */
  /***************************************************/
  
! #include <sys/soundcard.h>
! #include <sys/ultrasound.h>
  #include <unistd.h>
  #include "gus.h"
  #include "mod.h"
--- 20,27 ----
  /* See the associated README file for Thanks       */
  /***************************************************/
  
! #include <machine/soundcard.h>
! #include <machine/ultrasound.h>
  #include <unistd.h>
  #include "gus.h"
  #include "mod.h"
diff -cr s3mod-v1.08A/main.c s3mod-v1.08A.port/main.c
*** ./main.c	Mon Mar  7 05:56:44 1994
--- ..port/main.c	Thu Mar  9 12:59:57 1995
***************
*** 38,47 ****
   * Portability conditions                
   */
  
! #ifdef LINUX
! #include <linux/soundcard.h>
! #include <bytesex.h>
! #endif /* LINUX */
  #ifdef GUS
  #include "gus.h"
  #endif /* GUS */
--- 38,47 ----
   * Portability conditions                
   */
  
! #ifdef __FreeBSD__
! #include <machine/soundcard.h>
! #include <machine/endian.h>
! #endif /* __FreeBSD__ */
  #ifdef GUS
  #include "gus.h"
  #endif /* GUS */
***************
*** 81,96 ****
    printf("For information email (s3mod@uiuc.edu).\n");
    printf("s3mod [-sbfqnl] [sampling frequency] filename\n");
    printf("     -s stereo\n");
! #ifdef LINUX
    printf("     -b 16 bit samples\n");
! #endif /* ?LINUX */
    printf("     -f set frequency\n");
    printf("     -q quiet (don't print anything)\n");
    printf("     -n don't loop\n");
    printf("     -l loud mode (shift voices louder)\n");
! #ifdef LINUX
    printf("     -g do NOT use GUS native mode\n");
! #endif /* ?LINUX */
    printf("     -p PAL speed adjustment (145bpm start)\n");
    printf("s3mod -sbf 44100 foobar.mod\n");
    printf("   plays in stereo, 16 bits, 44.1 kHz\n\n");
--- 81,96 ----
    printf("For information email (s3mod@uiuc.edu).\n");
    printf("s3mod [-sbfqnl] [sampling frequency] filename\n");
    printf("     -s stereo\n");
! #ifdef __FreeBSD__
    printf("     -b 16 bit samples\n");
! #endif /* ?__FreeBSD__ */
    printf("     -f set frequency\n");
    printf("     -q quiet (don't print anything)\n");
    printf("     -n don't loop\n");
    printf("     -l loud mode (shift voices louder)\n");
! #ifdef __FreeBSD__
    printf("     -g do NOT use GUS native mode\n");
! #endif /* ?__FreeBSD__ */
    printf("     -p PAL speed adjustment (145bpm start)\n");
    printf("s3mod -sbf 44100 foobar.mod\n");
    printf("   plays in stereo, 16 bits, 44.1 kHz\n\n");
***************
*** 98,104 ****
    printf("4,6,or 8 track MODs.\n\n");
  #ifdef DEC
    printf("NOTE: DEC AF support is in it's ALPHA stages\n\n");
! #endif /* ?LINUX */
    exit(1);
  }
  
--- 98,104 ----
    printf("4,6,or 8 track MODs.\n\n");
  #ifdef DEC
    printf("NOTE: DEC AF support is in it's ALPHA stages\n\n");
! #endif /* ?__FreeBSD__ */
    exit(1);
  }
  
***************
*** 110,116 ****
  {
    int found_gus=0;
  
! #ifdef LINUX
  #ifdef GUS 
    if (use_gus)
      {
--- 110,116 ----
  {
    int found_gus=0;
  
! #ifdef __FreeBSD__
  #ifdef GUS 
    if (use_gus)
      {
***************
*** 124,130 ****
  #else /* GUS */
    get_dsp_device();
  #endif /* GUS */
! #endif /* LINUX */
  
  #ifdef SUN
    get_sun_device();
--- 124,130 ----
  #else /* GUS */
    get_dsp_device();
  #endif /* GUS */
! #endif /* __FreeBSD__ */
  
  #ifdef SUN
    get_sun_device();
***************
*** 231,237 ****
  #endif /* ?SUN */
  
  
! #ifdef LINUX 
  int get_dsp_device(void)
  {
    uint32 j;
--- 231,237 ----
  #endif /* ?SUN */
  
  
! #ifdef __FreeBSD__ 
  int get_dsp_device(void)
  {
    uint32 j;
***************
*** 279,285 ****
    audio_curptr = audio_start_buffer;  
  
  }
! #endif /* ?LINUX */
  
  
  
--- 279,285 ----
    audio_curptr = audio_start_buffer;  
  
  }
! #endif /* ?__FreeBSD__ */
  
  
  
diff -cr s3mod-v1.08A/mix.c s3mod-v1.08A.port/mix.c
*** ./mix.c	Mon Mar  7 05:19:25 1994
--- ..port/mix.c	Thu Mar  9 12:56:16 1995
***************
*** 27,39 ****
  #include <string.h>
  #include "mod.h"
  
! #ifdef LINUX
! #include <sys/soundcard.h>
! #include <bytesex.h>
! #endif /* ?LINUX */
  
  #ifdef GUS
! #include <sys/ultrasound.h>
  #include "gus.h"
  #endif /* ?GUS */
  
--- 27,39 ----
  #include <string.h>
  #include "mod.h"
  
! #ifdef __FreeBSD__
! #include <machine/soundcard.h>
! #include <machine/endian.h>
! #endif /* ?__FreeBSD__ */
  
  #ifdef GUS
! #include <machine/ultrasound.h>
  #include "gus.h"
  #endif /* ?GUS */
  
diff -cr s3mod-v1.08A/mod.c s3mod-v1.08A.port/mod.c
*** ./mod.c	Mon Mar  7 05:19:01 1994
--- ..port/mod.c	Thu Mar  9 12:53:53 1995
***************
*** 30,42 ****
  #include "mod.h"
  #include "main.h"
  
! #ifdef LINUX
! #include <sys/soundcard.h>
! #include <bytesex.h>
! #endif /* ?LINUX */
  
  #ifdef GUS
! #include <sys/ultrasound.h>
  #include "gus.h"
  #endif /* GUS */
  
--- 30,42 ----
  #include "mod.h"
  #include "main.h"
  
! #ifdef __FreeBSD__
! #include <machine/soundcard.h>
! #include <machine/endian.h>
! #endif /* ?__FreeBSD__ */
  
  #ifdef GUS
! #include <machine/ultrasound.h>
  #include "gus.h"
  #endif /* GUS */
  
diff -cr s3mod-v1.08A/mod.h s3mod-v1.08A.port/mod.h
*** ./mod.h	Mon Mar  7 05:21:18 1994
--- ..port/mod.h	Thu Mar  9 12:53:09 1995
***************
*** 22,28 ****
  #define __BYTE_ORDER 4321
  #endif 
  
! #ifdef linux
  #define BIT_32
  #undef NEAR_FAR_PTR
  #endif
--- 22,28 ----
  #define __BYTE_ORDER 4321
  #endif 
  
! #ifdef __FreeBSD__
  #define BIT_32
  #undef NEAR_FAR_PTR
  #endif
diff -cr s3mod-v1.08A/play.c s3mod-v1.08A.port/play.c
*** ./play.c	Mon Mar  7 05:18:08 1994
--- ..port/play.c	Thu Mar  9 12:55:46 1995
***************
*** 31,43 ****
  
  #include "main.h"
  
! #ifdef LINUX
! #include <bytesex.h>
! #include <sys/soundcard.h>
! #endif /* ?LINUX */
  
  #ifdef GUS
! #include <sys/ultrasound.h>
  #include "gus.h"
  #endif /* ?GUS */
  
--- 31,43 ----
  
  #include "main.h"
  
! #ifdef __FreeBSD__
! #include <machine/endian.h>
! #include <machine/soundcard.h>
! #endif /* ?__FreeBSD__ */
  
  #ifdef GUS
! #include <machine/ultrasound.h>
  #include "gus.h"
  #endif /* ?GUS */
  
diff -cr s3mod-v1.08A/s3m.c s3mod-v1.08A.port/s3m.c
*** ./s3m.c	Mon Mar  7 05:18:37 1994
--- ..port/s3m.c	Thu Mar  9 12:55:01 1995
***************
*** 22,35 ****
  
  #include <stdio.h>
  #include <string.h>
  
  #include <fcntl.h>
  
  #include "mod.h"
  
! #ifdef LINUX
! #include <bytesex.h>
! #include <linux/soundcard.h>
  #endif
  
  #ifdef GUS
--- 22,36 ----
  
  #include <stdio.h>
  #include <string.h>
+ #include <stdlib.h>
  
  #include <fcntl.h>
  
  #include "mod.h"
  
! #ifdef __FreeBSD__
! #include <machine/endian.h>
! #include <machine/soundcard.h>
  #endif
  
  #ifdef GUS