backport fix for bug #2969. (from 2.0 branch commit 30ff0c742ac7). SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sun, 07 Oct 2018 01:37:10 +0300
branchSDL-1.2
changeset 878294db2bca9b0
parent 877 7e3d377364e7
child 879 2af89c5af8b5
backport fix for bug #2969. (from 2.0 branch commit 30ff0c742ac7).
timidity/playmidi.c
     1.1 --- a/timidity/playmidi.c	Sun Oct 07 01:33:33 2018 +0300
     1.2 +++ b/timidity/playmidi.c	Sun Oct 07 01:37:10 2018 +0300
     1.3 @@ -326,7 +326,7 @@
     1.4     {
     1.5      int note = voice[v].sample->note_to_use;
     1.6      if (note>0 && drumvolume[chan][note]>=0) vol = drumvolume[chan][note];
     1.7 -    if (note>0 && drumpanpot[chan][note]>=0) panning = drumvolume[chan][note];
     1.8 +    if (note>0 && drumpanpot[chan][note]>=0) panning = drumpanpot[chan][note];
     1.9     }
    1.10  
    1.11    if (opt_expression_curve == 2) curved_expression = 127.0 * vol_table[expr];