shithub: dumb

Download patch

ref: 19527c25846226fe8d5479aaefc5bee0f3274d1a
parent: d02aa3a3a3ab05acf6908411f8ecfcb46bf06f73
author: Chris Moeller <[email protected]>
date: Mon Jan 11 04:02:14 EST 2010

{9/30/2009 4:11:06 AM}

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

--- a/dumb/src/it/readoldpsm.c
+++ b/dumb/src/it/readoldpsm.c
@@ -94,7 +94,8 @@
 		finetune = buffer[(n * 64) + 60];
 		s->default_volume = buffer[(n * 64) + 61];
 		s->C5_speed = buffer[(n * 64) + 62] | (buffer[(n * 64) + 63] << 8);
-		if (finetune < 16) {
+		if (finetune & 15) {
+			finetune &= 15;
 			if (finetune >= 8) finetune -= 16;
 			//s->C5_speed = (long)((double)s->C5_speed * pow(DUMB_PITCH_BASE, finetune*32));
 			s->finetune = finetune * 32;
@@ -289,7 +290,7 @@
 				if (channel >= chans)
 				{
 					//channel = 0;
-					goto error_fb;
+					//goto error_fb;
 				}
 				if (flags & 0x80) {
 					if ((*ptr < 60) && (channel < pchans)) {