Date: Tue, 9 Jan 1996 09:14:04 +0100 From: Janusz Kokot <janek@gaja.ipan.lublin.pl> To: <freebsd-ports@freebsd.org> Subject: Playmidi patch Message-ID: <XFMail.960109091403.janek@gaja.ipan.lublin.pl>
next in thread | raw e-mail | index | archive | help
This message is in MIME format --_=XFMail.0.3-beta.p0.FreeBSD:960109091403:4059=_ Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit I have included updated patch-aa file for playmidi. The original playmidi was no t able to play most of the midi files. ---------------------------- Janusz Kokot Institute of Agrophysics PAS Lublin, Doswiadczalna 4 Poland --_=XFMail.0.3-beta.p0.FreeBSD:960109091403:4059=_ Content-Description: patch-aa Content-transfer-encoding: 7bit Content-type: text/plain; charset=us-ascii; name=patch-aa; SizeOnDisk=3636 *** midifile.c.orig Sun Nov 20 03:46:34 1994 --- midifile.c Mon Feb 27 23:03:52 1995 *************** *** 69,75 **** --- 69,80 ---- #endif #include <stdio.h> + #ifdef __FreeBSD__ + #include <limits.h> + #define MAXINT INT_MAX + #else #include <values.h> + #endif char *strcpy (), *strcat (); /*void exit(), free();*/ *************** *** 567,573 **** break; case 0x7f: if (Mf_seqspecific) ! (*Mf_seqspecific) (leng, m); break; default: if (Mf_metamisc) --- 572,578 ---- break; case 0x7f: if (Mf_seqspecific) ! (*Mf_seqspecific) (type, leng, m); break; default: if (Mf_metamisc) *** patchload.c.orig Sun Nov 20 03:46:34 1994 --- patchload.c Mon Feb 27 23:02:13 1995 *************** *** 7,13 **** --- 7,17 ---- *************************************************************************/ #include "playmidi.h" + #ifdef __FreeBSD__ + #include <machine/ultrasound.h> + #else #include <sys/ultrasound.h> + #endif #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> *** playmidi.c.orig Sun Nov 20 22:13:51 1994 --- playmidi.c Mon Feb 27 23:02:13 1995 *************** *** 10,16 **** --- 10,20 ---- *************************************************************************/ #include "playmidi.h" #include <signal.h> + #ifndef __FreeBSD__ #include <getopt.h> + #else + #include <errno.h> + #endif #include <fcntl.h> #include <ctype.h> #include <unistd.h> *** playmidi.h.orig Sun Nov 20 03:46:34 1994 --- playmidi.h Mon Feb 27 23:02:13 1995 *************** *** 15,29 **** #define MAX_CARDS 5 /* Set default fm playback mode, 0=sb, 1=opl/3 */ #define FM_DEFAULT_MODE 0 /* this is where patches are searched for first */ ! #define PATCH_PATH1 "/usr/local/lib/Plib" /* if not found above, the following path will be searched */ #define PATCH_PATH2 "/dos/ultrasnd/midi" /* where to find fm patch libraries */ ! #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_sb & (1 << x)) --- 15,32 ---- #define MAX_CARDS 5 /* Set default fm playback mode, 0=sb, 1=opl/3 */ #define FM_DEFAULT_MODE 0 + #ifndef PREFIX + #define PREFIX "/usr/local" + #endif /* this is where patches are searched for first */ ! #define PATCH_PATH1 PREFIX "/lib/gus" /* if not found above, the following path will be searched */ #define PATCH_PATH2 "/dos/ultrasnd/midi" /* where to find fm patch libraries */ ! #define O3MELODIC PREFIX "/lib/midi/std.o3" ! #define O3DRUMS PREFIX "/lib/midi/drums.o3" ! #define SBMELODIC PREFIX "/lib/midi/std.sb" ! #define SBDRUMS PREFIX "/lib/midi/drums.sb" #define ISPERC(x) (perc & (1 << x)) #define ISGUS(x) (play_gus & (1 << x)) #define ISFM(x) (play_sb & (1 << x)) *************** *** 32,38 **** --- 35,45 ---- #include <stdio.h> #include <string.h> #include <stdlib.h> + #ifdef __FreeBSD__ + #include <machine/soundcard.h> + #else #include <sys/soundcard.h> + #endif #define PLAYMIDI #include "midifile.h" *** resetmidi.c.orig Sun Nov 20 03:46:34 1994 --- resetmidi.c Mon Feb 27 23:02:14 1995 *************** *** 6,12 **** --- 6,16 ---- * Source code may be freely distributed in unmodified form. *************************************************************************/ #include <stdio.h> + #ifndef __FreeBSD__ #include <getopt.h> + #else + #include <stdlib.h> + #endif #include <fcntl.h> #include <unistd.h> --_=XFMail.0.3-beta.p0.FreeBSD:960109091403:4059=_-- End of MIME message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.960109091403.janek>