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

Travis Howell kirben at users.sourceforge.net
Fri Sep 12 23:57:08 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv23985/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.248
retrieving revision 1.249
diff -u -d -r1.248 -r1.249
--- sound.cpp	10 Sep 2003 22:36:46 -0000	1.248
+++ sound.cpp	13 Sep 2003 06:56:47 -0000	1.249
@@ -350,6 +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;
 					// 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