[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.85,1.86

Jonathan Gray khalek at users.sourceforge.net
Sat Mar 1 06:06:15 CET 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv5351

Modified Files:
	sound.cpp 
Log Message:
we were reading 8 bytes too much on DIGI sounds

Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- sound.cpp	1 Mar 2003 12:44:52 -0000	1.85
+++ sound.cpp	1 Mar 2003 13:32:45 -0000	1.86
@@ -224,7 +224,7 @@
 			if (READ_UINT32_UNALIGNED(ptr) != MKID('SDAT'))
 				return;	// abort
 	
-			size = READ_BE_UINT32_UNALIGNED(ptr+4);
+			size = READ_BE_UINT32_UNALIGNED(ptr+4) - 8;
 			// FIXME - what value here ?!? 11025 is just a guess based on strings in w32 bin, prev guess 8000
 			rate = 11025;
 			





More information about the Scummvm-git-logs mailing list