wok-next view timidity++/stuff/patches/mfi.c.patch @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents TiMidity++/stuff/patches/mfi.c.patch@31a5f8af77a8
children
line source
1 --- timidity/mfi.c 2004-02-17 17:02:18.000000000 +0100
2 +++ timidity/mfi.c.new 2017-02-14 04:41:24.000000000 +0100
3 @@ -344,7 +344,7 @@
4 #define SEND_LASTNOTEINFO(lni, ch) if (LASTNOTEINFO_HAS_DATA((lni)[ch])) SendLastNoteInfo(lni, ch);
5 #define SEND_AND_CLEAR_LASTNOTEINFO(lni, ch) if (LASTNOTEINFO_HAS_DATA((lni)[ch])) { SendLastNoteInfo(lni, ch); (lni)[ch].on = NO_LAST_NOTE_INFO; }
7 -inline void StoreLastNoteInfo(LastNoteInfo *info, int channel, int time, int duration, int note, int velocity)
8 +static inline void StoreLastNoteInfo(LastNoteInfo *info, int channel, int time, int duration, int note, int velocity)
9 {
10 info[channel].on = time;
11 info[channel].off = time + duration;
12 @@ -352,7 +352,7 @@
13 info[channel].velocity = velocity;
14 }
16 -inline void SendLastNoteInfo(const LastNoteInfo *info, int channel)
17 +static inline void SendLastNoteInfo(const LastNoteInfo *info, int channel)
18 {
19 NOTE_BUF_EV_DEBUGSTR(channel, info[channel].on, note_name[info[channel].note % 12], info[channel].note / 12, info[channel].velocity, info[channel].off);
20 MIDIEVENT(info[channel].on, ME_NOTEON, channel, info[channel].note, info[channel].velocity);