[Scummvm-cvs-logs] CVS: scummvm/scumm sound.cpp,1.28,1.29

Pawe? Ko?odziejski aquadran at users.sourceforge.net
Sun Oct 6 03:56:02 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv13882

Modified Files:
	sound.cpp 
Log Message:
hack: enabled exit from loop on bad opcode.
some FT samples (ex. 362) has bad length, 2 bytes

Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/sound.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- sound.cpp	4 Oct 2002 08:04:34 -0000	1.28
+++ sound.cpp	6 Oct 2002 10:55:04 -0000	1.29
@@ -160,15 +160,16 @@
 				}
 				} break;
 			case 6:	// begin of loop
-				loops = len + 1;
+				loops = len + 1;
 				break;
 			case 7:	// end of loop
 				break;
 			default:
 				warning("Invalid code in VOC file : %d", code);
-				//~ quit = 1;
+				quit = 1;
 				break;
 		}
+		// FIXME some FT samples (ex. 362) has bad length, 2 bytes too short
 		offset += len;
 	}
 	debug(9, "VOC Data Size : %d", size);





More information about the Scummvm-git-logs mailing list