[Scummvm-cvs-logs] CVS: scummvm/sound audiostream.cpp,1.19,1.20

Max Horn fingolfin at users.sourceforge.net
Sat Aug 2 10:28:03 CEST 2003


Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv18610

Modified Files:
	audiostream.cpp 
Log Message:
don't use asserts in these tight spots

Index: audiostream.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/audiostream.cpp,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- audiostream.cpp	2 Aug 2003 02:41:30 -0000	1.19
+++ audiostream.cpp	2 Aug 2003 17:27:17 -0000	1.20
@@ -58,7 +58,7 @@
 			assert(len % 2 == 0);
 	}
 	int16 read() {
-		assert(_ptr < _end);
+		//assert(_ptr < _end);
 		int16 val = readSample<is16Bit, isUnsigned>(_ptr);
 		_ptr += (is16Bit ? 2 : 1);
 		if (_loopPtr && _ptr == _end) {
@@ -114,7 +114,7 @@
 
 template<bool stereo, bool is16Bit, bool isUnsigned>
 int16 WrappedMemoryStream<stereo, is16Bit, isUnsigned>::read() {
-	assert(_pos != _end);
+	//assert(_pos != _end);
 	int16 val = readSample<is16Bit, isUnsigned>(_pos);
 	_pos += (is16Bit ? 2 : 1);
 





More information about the Scummvm-git-logs mailing list