summaryrefslogtreecommitdiff
path: root/apps/plugins/midi/synth.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/midi/synth.h')
-rw-r--r--apps/plugins/midi/synth.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/midi/synth.h b/apps/plugins/midi/synth.h
index dd52c40a7d..e04f9f4bd5 100644
--- a/apps/plugins/midi/synth.h
+++ b/apps/plugins/midi/synth.h
@@ -48,9 +48,9 @@ static inline void synthSample(int * mixL, int * mixR)
48 voicept++; 48 voicept++;
49 } 49 }
50 50
51 /* if max voices is an even number gcc is smart enough to not 51/* if MAX_VOICES is not even we do this to get the last voice */
52 include this loop */ 52#if MAX_VOICES%2
53 for(i=MAX_VOICES%2; i > 0; i--) 53 if (MAX_VOICES%2)
54 { 54 {
55 if(voicept->isUsed==1) 55 if(voicept->isUsed==1)
56 { 56 {
@@ -59,8 +59,8 @@ static inline void synthSample(int * mixL, int * mixR)
59 sample *= chPan[voicept->ch]; 59 sample *= chPan[voicept->ch];
60 dR += sample; 60 dR += sample;
61 } 61 }
62 voicept++;
63 } 62 }
63#endif
64 64
65 dL = (dL << 7) - dR; 65 dL = (dL << 7) - dR;
66 66