patches/timidity-01-sunstudio.diff
author jurikm
Sun, 12 Feb 2012 14:04:10 +0000
changeset 8245 383896da4129
parent 3078 4022cd1506a3
permissions -rw-r--r--
SFEsauerbraten.spec: add IPS package name
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3078
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     1
diff -Naur timidity-2.13.2+cvs20081202.orig/timidity/mfi.c timidity-2.13.2+cvs20081202/timidity/mfi.c
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     2
--- timidity-2.13.2+cvs20081202.orig/timidity/mfi.c	2004-02-17 17:02:18.000000000 +0100
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     3
+++ timidity-2.13.2+cvs20081202/timidity/mfi.c	2008-12-02 16:52:48.341051000 +0100
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     4
@@ -344,7 +344,7 @@
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     5
 #define SEND_LASTNOTEINFO(lni, ch)				if (LASTNOTEINFO_HAS_DATA((lni)[ch])) SendLastNoteInfo(lni, ch);
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     6
 #define SEND_AND_CLEAR_LASTNOTEINFO(lni, ch)	if (LASTNOTEINFO_HAS_DATA((lni)[ch])) { SendLastNoteInfo(lni, ch); (lni)[ch].on = NO_LAST_NOTE_INFO; }
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     7
 
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     8
-inline void StoreLastNoteInfo(LastNoteInfo *info, int channel, int time, int duration, int note, int velocity)
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
     9
+static void StoreLastNoteInfo(LastNoteInfo *info, int channel, int time, int duration, int note, int velocity)
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    10
 {
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    11
 	info[channel].on = time;
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    12
 	info[channel].off = time + duration;
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    13
@@ -352,7 +352,7 @@
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    14
 	info[channel].velocity = velocity;
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    15
 }
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    16
 
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    17
-inline void SendLastNoteInfo(const LastNoteInfo *info, int channel)
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    18
+static void SendLastNoteInfo(const LastNoteInfo *info, int channel)
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    19
 {
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    20
 	NOTE_BUF_EV_DEBUGSTR(channel, info[channel].on, note_name[info[channel].note % 12], info[channel].note / 12, info[channel].velocity, info[channel].off);
4022cd1506a3 SFEtimidity.spec: from jucr to SFE
jurikm
parents:
diff changeset
    21
 	MIDIEVENT(info[channel].on, ME_NOTEON, channel, info[channel].note, info[channel].velocity);