[Scummvm-cvs-logs] CVS: scummvm/saga sndres.cpp,1.54.2.1,1.54.2.2

Eugene Sandulenko sev at users.sourceforge.net
Thu Oct 20 19:26:08 CEST 2005


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2503/saga

Modified Files:
      Tag: branch-0-8-0
	sndres.cpp 
Log Message:
Backport IMA ADPCM fixes. This fixes bunch of latter HE games.


Index: sndres.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sndres.cpp,v
retrieving revision 1.54.2.1
retrieving revision 1.54.2.2
diff -u -d -r1.54.2.1 -r1.54.2.2
--- sndres.cpp	18 Oct 2005 02:11:20 -0000	1.54.2.1
+++ sndres.cpp	21 Oct 2005 02:25:20 -0000	1.54.2.2
@@ -216,7 +216,7 @@
 			buffer.buffer = NULL;
 			free(soundResource);
 		} else {
-			voxStream = makeADPCMStream(readS, soundResourceLength, kADPCMOki);
+			voxStream = new ADPCMInputStream(&readS, soundResourceLength, kADPCMOki);
 			buffer.buffer = (byte *)malloc(buffer.size);
 			voxSize = voxStream->readBuffer((int16*)buffer.buffer, soundResourceLength * 2);
 			if (voxSize != soundResourceLength * 2) {





More information about the Scummvm-git-logs mailing list