[Scummvm-cvs-logs] SF.net SVN: scummvm:[53125] scummvm/trunk/engines/toon/audio.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Oct 10 18:13:55 CEST 2010


Revision: 53125
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53125&view=rev
Author:   eriktorbjorn
Date:     2010-10-10 16:13:55 +0000 (Sun, 10 Oct 2010)

Log Message:
-----------
TOON: Fix distortion in some looped music

This was very noticeable in the footman conversation music.

Modified Paths:
--------------
    scummvm/trunk/engines/toon/audio.cpp

Modified: scummvm/trunk/engines/toon/audio.cpp
===================================================================
--- scummvm/trunk/engines/toon/audio.cpp	2010-10-10 15:47:05 UTC (rev 53124)
+++ scummvm/trunk/engines/toon/audio.cpp	2010-10-10 16:13:55 UTC (rev 53125)
@@ -245,6 +245,8 @@
 		if (_looping) {
 			_file->seek(8);
 			_currentReadSize = 8;
+			_lastADPCMval1 = 0;
+			_lastADPCMval2 = 0;
 		} else {
 			_bufferSize = 0;
 			stopNow();
@@ -325,7 +327,7 @@
 
 		*dest = v18;
 		comp += v29;
-		dest ++;
+		dest++;
 	}
 
 	_lastADPCMval1 = v18;


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