diff --git a/apps/plugins/midi/synth.c b/apps/plugins/midi/synth.c index bae6149860..7e283d4ef1 100644 --- a/apps/plugins/midi/synth.c +++ b/apps/plugins/midi/synth.c @@ -293,7 +293,7 @@ static inline void synthVoice(struct SynthObject * so, int32_t * out, unsigned i const unsigned int start_loop = wf->startLoop << FRACTSIZE; const int diff_loop = end_loop-start_loop; - while(samples-- > 0) + while(likely(samples-- > 0)) { /* Is voice being ramped? */ if(unlikely(so->state == STATE_RAMPDOWN))