shithub: dumb

Download patch

ref: d8680ee4bdafc15a97bab686bb61597289fedec1
parent: 4e1db2adb05e53c50fe38102676889c22a4f2e66
author: Chris Moeller <[email protected]>
date: Mon Jan 11 04:00:00 EST 2010

{5/27/2006 1:41:32 PM}2006-05-27 22:40 UTC - kode54
- S3M reader defaults to maximum (128) global volume when the header value is
  either zero or greater than 64. (darkness2.s3m)

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

--- a/dumb/src/it/reads3m.c
+++ b/dumb/src/it/reads3m.c
@@ -564,6 +564,7 @@
 	}
 
 	sigdata->global_volume = dumbfile_getc(f) << 1;
+	if ( !sigdata->global_volume || sigdata->global_volume > 128 ) sigdata->global_volume = 128;
 	sigdata->speed = dumbfile_getc(f);
 	if (sigdata->speed == 0) sigdata->speed = 6; // Should we? What about tempo?
 	sigdata->tempo = dumbfile_getc(f);