[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.249,1.250

Travis Howell kirben at users.sourceforge.net
Sat Sep 13 05:05:04 CEST 2003


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

Modified Files:
	sound.cpp 
Log Message:

Another fm towns sound fix from Hibernatus


Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -d -r1.249 -r1.250
--- sound.cpp	13 Sep 2003 06:56:47 -0000	1.249
+++ sound.cpp	13 Sep 2003 12:04:48 -0000	1.250
@@ -350,8 +350,8 @@
 					int waveSize = READ_LE_UINT32(ptr + 0x0C);
 					int loopStart = READ_LE_UINT32(ptr + 0x10);
 					int loopEnd = READ_LE_UINT32(ptr + 0x14);
-					if (loopEnd < waveSize && loopEnd > 0)
-						waveSize = loopEnd;
+					if (loopEnd == 0 && loopStart > 0)
+						waveSize = loopStart;
 					// it's not exactly * 10, maybe it's not even linear, but * 10 sounds ok.
 					rate = READ_LE_UINT32(ptr + 0x18) * 10;
 





More information about the Scummvm-git-logs mailing list