Re: midi on UDB?

jestabro@amt.tay1.dec.com
Wed, 30 Oct 1996 13:44:40 -0500

>>> James Tuan said:
> Hi, I have an UDB and I tried to compile timidity, the software midi player
> on it. However, whenever I play a midi file, I hear a lot of clicking and
> static. I've tried using different switches when I run the program and when
> I compile the program, and none of them made any difference. Can any one
> help me?
>
> I am using timidity 0.02i, Redhat 3.0.3. I know the sound works because I
> can use mikmod, a mod player, without any problems.

I'll include the patches I made to 0.02h, which, if I remember correctly,
at least some of which were not needed for 0.02i.

Do you have all the sample files setup corectly, with the appropriate config
files pointing to them? This burned me when going to 0.02i from 0.02h, for
some reason which I can't remember.

--Jay++

-------------------------------------------------------------------------------
diff -urP timidity-0.2h/Makefile timidity-new/Makefile
--- timidity-0.2h/Makefile Fri Apr 19 14:55:07 1996
+++ timidity-new/Makefile Thu Apr 25 23:28:43 1996
@@ -31,7 +31,7 @@
# or you'll need to invoke timidity with the -L option.
TIMID_DIR = /usr/local/lib/timidity

-INSTALL = /usr/ucb/install
+INSTALL = /usr/bin/install

########### Compilation options -- there are more in config.h.
#
diff -urP timidity-0.2h/config.h timidity-new/config.h
--- timidity-0.2h/config.h Mon Sep 11 05:41:11 1995
+++ timidity-new/config.h Thu Apr 25 23:28:43 1996
@@ -204,8 +204,13 @@
# endif
#endif

+#ifdef __alpha__
+typedef unsigned int uint32;
+typedef int int32;
+#else
typedef unsigned long uint32;
typedef long int32;
+#endif /* __alpha__ */
typedef unsigned short uint16;
typedef short int16;
typedef unsigned char uint8;
diff -urP timidity-0.2h/playmidi.c timidity-new/playmidi.c
--- timidity-0.2h/playmidi.c Mon Sep 11 07:06:17 1995
+++ timidity-new/playmidi.c Thu Apr 25 23:28:43 1996
@@ -900,6 +900,8 @@
int rc;
FILE *fp;

+ if (!fn) return RC_ERROR;
+
ctl->cmsg(CMSG_INFO, VERB_VERBOSE, "MIDI file: %s", fn);

if (!strcmp(fn, "-"))
-------------------------------------------------------------------------------

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null



Feedback | Store | News | Support | Product Errata | About Us | Linux Info | Search | JumpWords
No Frames | Show Frames

Copyright © 1995-1997 Red Hat Software. Legal notices