src/codecs/timidity/playmidi.c
changeset 1083 7a3b49dbf90f
parent 999 1a87fe70802d
     1.1 --- a/src/codecs/timidity/playmidi.c	Thu Dec 12 17:28:10 2019 +0300
     1.2 +++ b/src/codecs/timidity/playmidi.c	Mon Dec 16 10:33:55 2019 +0300
     1.3 @@ -65,7 +65,7 @@
     1.4    reset_voices(song);
     1.5  }
     1.6  
     1.7 -static void select_sample(MidiSong *song, int v, Instrument *ip, int vel)
     1.8 +static void select_sample(MidiSong *song, int v, Instrument *ip)
     1.9  {
    1.10    Sint32 f, cdiff, diff;
    1.11    int s,i;
    1.12 @@ -268,7 +268,7 @@
    1.13  	song->voice[i].orig_frequency = freq_table[(int)(ip->sample->note_to_use)];
    1.14        else
    1.15  	song->voice[i].orig_frequency = freq_table[e->a & 0x7F];
    1.16 -      select_sample(song, i, ip, e->b);
    1.17 +      select_sample(song, i, ip);
    1.18      }
    1.19  
    1.20    song->voice[i].status = VOICE_ON;