[Scummvm-cvs-logs] CVS: scummvm/saga sndres.cpp,1.55,1.56
Eugene Sandulenko
sev at users.sourceforge.net
Tue Oct 18 22:00:14 CEST 2005
Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3971/saga
Modified Files:
sndres.cpp
Log Message:
Improved IMA ADPCM decoder. It appeared that MS violated yet another standard
and nibbles order in samples appeared to be swapped. Had to untemplate
whole thing over again because I have no idea how to speicalize one of two
parameters in templates.
Now voices are clean but have some ticks, looks like overload. ITE wasn't
broken ;)
Index: sndres.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sndres.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- sndres.cpp 18 Oct 2005 01:30:19 -0000 1.55
+++ sndres.cpp 19 Oct 2005 04:59:18 -0000 1.56
@@ -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