openbsd-ports/audio/timidity/patches/patch-ab
1999-02-07 05:18:48 +00:00

35 lines
1.0 KiB
Plaintext

diff -u ../timidity-0.2i/config.h ./config.h
--- ../timidity-0.2i/config.h Sat Jun 1 07:54:49 1996
+++ ./config.h Fri Feb 5 12:01:15 1999
@@ -121,7 +121,7 @@
/* Make envelopes twice as fast. Saves ~20% CPU time (notes decay
faster) and sounds more like a GUS. There is now a command line
option to toggle this as well. */
-#define FAST_DECAY
+/* #define FAST_DECAY */
/* How many bits to use for the fractional part of sample positions.
This affects tonal accuracy. The entire position counter must fit
@@ -217,6 +217,12 @@
# endif
#endif /* linux */
+#ifdef __OpenBSD__
+#include <errno.h>
+#define USE_LDEXP
+#define PI M_PI
+#endif
+
/* Win32 on Intel machines */
#ifdef __WIN32__
# define LITTLE_ENDIAN
@@ -267,7 +273,7 @@
/* You could specify a complete path, e.g. "/etc/timidity.cfg", and
then specify the library directory in the configuration file. */
-#define CONFIG_FILE "timidity.cfg"
+#define CONFIG_FILE "/usr/local/lib/timidity/timidity.cfg"
/* These affect general volume */
#define GUARD_BITS 3