[Scummvm-cvs-logs] SF.net SVN: scummvm:[47652] scummvm/trunk/sound/decoders/adpcm.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Jan 28 22:05:23 CET 2010


Revision: 47652
          http://scummvm.svn.sourceforge.net/scummvm/?rev=47652&view=rev
Author:   lordhoto
Date:     2010-01-28 21:05:10 +0000 (Thu, 28 Jan 2010)

Log Message:
-----------
Add some paranaoia assert (and a related TODO) to the MSIMA2 implementation.

Modified Paths:
--------------
    scummvm/trunk/sound/decoders/adpcm.cpp

Modified: scummvm/trunk/sound/decoders/adpcm.cpp
===================================================================
--- scummvm/trunk/sound/decoders/adpcm.cpp	2010-01-28 21:01:57 UTC (rev 47651)
+++ scummvm/trunk/sound/decoders/adpcm.cpp	2010-01-28 21:05:10 UTC (rev 47652)
@@ -332,6 +332,12 @@
 	int nibble;
 	byte k;
 
+	// TODO: Currently this implementation only supports
+	// reading a multiple of 16 samples at once. We might
+	// consider changing that so it could read an arbitrary
+	// sample pair count.
+	assert(numSamples % 16 == 0);
+
 	for (samples = 0; samples < numSamples && !_stream->eos() && _stream->pos() < _endpos;) {
 		for (int channel = 0; channel < 2; channel++) {
 			data = _stream->readUint32LE();


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list