shithub: dumb

Download patch

ref: 23f4dc1b6d64df60fea10eae1d6bf0a88c6d9c0c
parent: 3bcbb6a94a73e0d782e63055a20e7d90860a8b70
author: Chris Moeller <kode54@gmail.com>
date: Tue Mar 25 21:40:41 EDT 2014

Oops, I somehow seriously broke volume ramping prior to the previous release

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -4190,7 +4190,7 @@
 				//if ((sigrenderer->channel[i].playing->flags & (IT_PLAYING_BACKGROUND | IT_PLAYING_DEAD)) == (IT_PLAYING_BACKGROUND | IT_PLAYING_DEAD)) {
 				// This change was made so Gxx would work correctly when a note faded out or whatever. Let's hope nothing else was broken by it.
 				if ((sigrenderer->channel[i].playing->flags & IT_PLAYING_DEAD) ||
-                    (sigrenderer->channel[i].playing->declick_stage > 4)) {
+                    (sigrenderer->channel[i].playing->declick_stage > 3)) {
 					free_playing(sigrenderer->channel[i].playing);
 					sigrenderer->channel[i].playing = NULL;
 				}
@@ -4202,7 +4202,7 @@
 		if (sigrenderer->playing[i]) {
 			process_playing(sigrenderer, sigrenderer->playing[i], invt2g);
 			if ((sigrenderer->playing[i]->flags & IT_PLAYING_DEAD) ||
-                (sigrenderer->playing[i]->declick_stage > 4)) {
+                (sigrenderer->playing[i]->declick_stage > 3)) {
 				free_playing(sigrenderer->playing[i]);
 				sigrenderer->playing[i] = NULL;
 			}
@@ -4960,7 +4960,7 @@
 		if (sigrenderer->channel[i].playing) {
 			//if ((sigrenderer->channel[i].playing->flags & (IT_PLAYING_BACKGROUND | IT_PLAYING_DEAD)) == (IT_PLAYING_BACKGROUND | IT_PLAYING_DEAD)) {
 			// This change was made so Gxx would work correctly when a note faded out or whatever. Let's hope nothing else was broken by it.
-			if ((sigrenderer->channel[i].playing->declick_stage > 4) ||
+			if ((sigrenderer->channel[i].playing->declick_stage > 3) ||
 			(sigrenderer->channel[i].playing->flags & IT_PLAYING_DEAD)) {
 				free_playing(sigrenderer->channel[i].playing);
 				sigrenderer->channel[i].playing = NULL;
@@ -4970,7 +4970,7 @@
 
 	for (i = 0; i < DUMB_IT_N_NNA_CHANNELS; i++) {
 		if (sigrenderer->playing[i]) {
-			if ((sigrenderer->playing[i]->declick_stage > 4) ||
+			if ((sigrenderer->playing[i]->declick_stage > 3) ||
 				(sigrenderer->playing[i]->flags & IT_PLAYING_DEAD)) {
 				free_playing(sigrenderer->playing[i]);
 				sigrenderer->playing[i] = NULL;
@@ -5115,7 +5115,7 @@
 		if (sigrenderer->channel[i].playing) {
 			//if ((sigrenderer->channel[i].playing->flags & (IT_PLAYING_BACKGROUND | IT_PLAYING_DEAD)) == (IT_PLAYING_BACKGROUND | IT_PLAYING_DEAD)) {
 			// This change was made so Gxx would work correctly when a note faded out or whatever. Let's hope nothing else was broken by it.
-			if ((sigrenderer->channel[i].playing->declick_stage > 4) ||
+			if ((sigrenderer->channel[i].playing->declick_stage > 3) ||
 			(sigrenderer->channel[i].playing->flags & IT_PLAYING_DEAD)) {
 				free_playing(sigrenderer->channel[i].playing);
 				sigrenderer->channel[i].playing = NULL;
@@ -5125,7 +5125,7 @@
 
 	for (i = 0; i < DUMB_IT_N_NNA_CHANNELS; i++) {
 		if (sigrenderer->playing[i]) {
-			if ((sigrenderer->playing[i]->declick_stage > 4) ||
+			if ((sigrenderer->playing[i]->declick_stage > 3) ||
 				(sigrenderer->playing[i]->flags & IT_PLAYING_DEAD)) {
 				free_playing(sigrenderer->playing[i]);
 				sigrenderer->playing[i] = NULL;