shithub: dumb

Download patch

ref: 5fedef969bbde33acedc5be6dad13e943e3aa98e
parent: 3a3375f808ee166c78315e1005cd82203e356b3c
author: Chris Moeller <[email protected]>
date: Fri Sep 27 15:53:31 EDT 2013

Removed start of note ramp when raising volume from zero on a running note, as normal volume ramping will already kick in

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -3340,7 +3340,6 @@
 
 	if (entry->mask & IT_ENTRY_INSTRUMENT) {
 		int oldsample = channel->sample;
-		int oldvolume = channel->volume;
 		channel->inv_loop_offset = 0;
 		channel->instrument = entry->instrument;
 		instrument_to_sample(sigdata, channel);
@@ -3401,12 +3400,6 @@
 				}
 				get_default_volpan(sigdata, channel);
 			}
-#ifdef END_RAMPING
-			if (channel->volume && !oldvolume) {
-				channel->playing->declick_stage = 0;
-				channel->playing->declick_volume = 1.f / 256.f;
-			}
-#endif
 		}
 	}