2000-01-05 20:56:50 +00:00
|
|
|
*** playmidi.h-dist.orig Mon May 12 06:26:36 1997
|
|
|
|
--- playmidi.h-dist Wed Jan 5 06:33:52 2000
|
1996-11-15 06:54:09 +00:00
|
|
|
***************
|
|
|
|
*** 35,44 ****
|
|
|
|
#define MAXTRKS 128
|
|
|
|
/* where to find fm patch libraries */
|
|
|
|
#define SEQUENCER_DEV "/dev/sequencer"
|
|
|
|
! #define O3MELODIC "/etc/std.o3"
|
|
|
|
! #define O3DRUMS "/etc/drums.o3"
|
|
|
|
! #define SBMELODIC "/etc/std.sb"
|
|
|
|
! #define SBDRUMS "/etc/drums.sb"
|
|
|
|
#define ISPERC(x) (perc & (1 << x))
|
|
|
|
#define ISGUS(x) (play_gus & (1 << x))
|
|
|
|
#define ISFM(x) (play_fm & (1 << x))
|
|
|
|
--- 35,47 ----
|
|
|
|
#define MAXTRKS 128
|
|
|
|
/* where to find fm patch libraries */
|
|
|
|
#define SEQUENCER_DEV "/dev/sequencer"
|
|
|
|
! #ifndef PREFIX
|
2000-01-05 20:56:50 +00:00
|
|
|
! #define PREFIX "/usr/local"
|
1996-11-15 06:54:09 +00:00
|
|
|
! #endif
|
2000-01-05 20:56:50 +00:00
|
|
|
! #define O3MELODIC PREFIX "/libdata/midi/std.o3"
|
|
|
|
! #define O3DRUMS PREFIX "/libdata/midi/drums.o3"
|
|
|
|
! #define SBMELODIC PREFIX "/libdata/midi/std.sb"
|
|
|
|
! #define SBDRUMS PREFIX "/libdata/midi/drums.sb"
|
1996-11-15 06:54:09 +00:00
|
|
|
#define ISPERC(x) (perc & (1 << x))
|
|
|
|
#define ISGUS(x) (play_gus & (1 << x))
|
|
|
|
#define ISFM(x) (play_fm & (1 << x))
|
|
|
|
***************
|
2000-01-05 20:56:50 +00:00
|
|
|
*** 50,56 ****
|
|
|
|
--- 53,63 ----
|
1996-11-15 06:54:09 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
+ #ifdef __FreeBSD__
|
|
|
|
+ #include <machine/soundcard.h>
|
|
|
|
+ #else
|
|
|
|
#include <sys/soundcard.h>
|
|
|
|
+ #endif
|
|
|
|
#include <sys/ioctl.h>
|
2000-01-05 20:56:50 +00:00
|
|
|
#ifdef linux
|
|
|
|
#include <linux/awe_voice.h>
|