shithub: dumb

Download patch

ref: 3527875388468d5343c7958d4781f250d4c333d6
parent: 95afd4ca875c3f3983de167afcc7deda682a8c8d
author: Chris Moeller <[email protected]>
date: Mon Jan 11 03:59:17 EST 2010

{11/28/2005 4:51:00 AM}

git-tfs-id: [http://localhost:8080/tfs/DefaultCollection/]$/foobar2000/files/plugins.root;C54

--- a/dumb/src/it/itrender.c
+++ b/dumb/src/it/itrender.c
@@ -3550,14 +3550,16 @@
 					* playing->sample->C5_speed * (1.f / 65536.f);
 			}
 
+			/*
 			if ( channel->arpeggio ) { // another FT2 bug...
-				if ((sigdata->flags & (IT_LINEAR_SLIDES|IT_WAS_AN_XM|IT_WAS_A_MOD)) == (IT_WAS_AN_XM|IT_LINEAR_SLIDES))
+				if ((sigdata->flags & (IT_LINEAR_SLIDES|IT_WAS_AN_XM|IT_WAS_A_MOD)) == (IT_WAS_AN_XM|IT_LINEAR_SLIDES) &&
+					playing->flags & IT_PLAYING_SUSTAINOFF)
 				{
 					if ( channel->arpeggio > 0xFF )
 						playing->delta = playing->sample->C5_speed * (1.f / 65536.f);
 				}
-				else playing->delta *= (float)pow(DUMB_SEMITONE_BASE, channel->arpeggio >> 8);
-			}
+				else*/ playing->delta *= (float)pow(DUMB_SEMITONE_BASE, channel->arpeggio >> 8);/*
+			}*/
 
 			if (playing->finetune)
 				playing->delta *= (float)pow(DUMB_PITCH_BASE, playing->finetune);