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

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Sun Oct 16 06:33:23 CEST 2005


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

Modified Files:
	d_sound.cpp 
Log Message:
There was a mention of the "Expected XXX samples..." error in the IRC logs.
Without a proper bug report, it's hard to diagnose, but this change might
allow it to recover after such an error. Maybe.


Index: d_sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/d_sound.cpp,v
retrieving revision 1.156
retrieving revision 1.157
diff -u -d -r1.156 -r1.157
--- d_sound.cpp	15 Aug 2005 15:37:17 -0000	1.156
+++ d_sound.cpp	16 Oct 2005 13:31:57 -0000	1.157
@@ -323,9 +323,8 @@
 	// during development. :-)
 
 	if (len < desired) {
-		warning("Expected %d samples, but got none", desired);
-		if (!len)
-			return;
+		warning("Expected %d samples, but got %d", desired, len);
+		_samplesLeft = len;
 	}
 
 	buf += len;





More information about the Scummvm-git-logs mailing list