shithub: dumb

Download patch

ref: c7f726980b257e127cb0fc788674cc5958005588
parent: c08c5988a0f2106660dd61734d91541a0d894e49
author: Chris Moeller <kode54@gmail.com>
date: Wed Jul 2 08:24:31 EDT 2014

Fixed dead note dropping when volume ramping is active

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -4740,7 +4740,7 @@
 		playing->ramp_volume [0] = lvol.volume;
 		playing->ramp_volume [1] = rvol.volume;
         playing->declick_stage = (lvol.declick_stage > rvol.declick_stage) ? lvol.declick_stage : rvol.declick_stage;
-        if (playing->declick_stage > 4)
+        if (playing->declick_stage >= 4)
             playing->flags |= IT_PLAYING_DEAD;
 		(*left_to_mix)--;
 	}