ref: 9fc8f92d437a8132e90d53c94e6ca019b928dd1c
parent: 5fedef969bbde33acedc5be6dad13e943e3aa98e
author: Chris Moeller <kode54@gmail.com>
date: Fri Sep 27 15:55:52 EDT 2013
Fixed declicker handling cases where a declicking operation lasts longer than the current block
--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -4907,6 +4907,8 @@
}
if (size < declick_remain) declick_remain = size;
remain = declick_remain;
+ if (remain > size)
+ declick_remain = size;
declick_target = playing->declick_volume + declick_dir / declick_count * declick_remain;
declick_lvol.volume = lvol.volume * playing->declick_volume;
declick_rvol.volume = rvol.volume * playing->declick_volume;