[Scummvm-cvs-logs] CVS: scummvm/sword2/driver d_sound.cpp,1.155,1.156

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Mon Aug 15 11:12:25 CEST 2005


Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20237/driver

Modified Files:
	d_sound.cpp 
Log Message:
Fixed long-standing bug with sound decompression that would cause a slight
pop at the end of some sounds because it was trying to decode one sample
too many.


Index: d_sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/d_sound.cpp,v
retrieving revision 1.155
retrieving revision 1.156
diff -u -d -r1.155 -r1.156
--- d_sound.cpp	10 Aug 2005 12:42:56 -0000	1.155
+++ d_sound.cpp	15 Aug 2005 15:37:17 -0000	1.156
@@ -108,7 +108,7 @@
 			fh->idxTab[cnt * 3 + 0] = fh->file->readUint32LE();
 			fh->idxTab[cnt * 3 + 1] = fh->file->readUint32LE();
 			if (fh->fileType == kCLUMode)
-				fh->idxTab[cnt * 3 + 2] = fh->idxTab[cnt * 3 + 1] + 1;
+				fh->idxTab[cnt * 3 + 2] = fh->idxTab[cnt * 3 + 1];
 			else
 				fh->idxTab[cnt * 3 + 2] = fh->file->readUint32LE();
 		}





More information about the Scummvm-git-logs mailing list