[Scummvm-cvs-logs] SF.net SVN: scummvm:[34571] scummvm/trunk/engines/drascula/sound.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Tue Sep 16 10:10:09 CEST 2008


Revision: 34571
          http://scummvm.svn.sourceforge.net/scummvm/?rev=34571&view=rev
Author:   thebluegr
Date:     2008-09-16 08:10:08 +0000 (Tue, 16 Sep 2008)

Log Message:
-----------
Added a workaround to skip the silence in the beginning and end of file 3.als. Fixes bug #2111815 - "DRASCULA: Voice delayed"

Modified Paths:
--------------
    scummvm/trunk/engines/drascula/sound.cpp

Modified: scummvm/trunk/engines/drascula/sound.cpp
===================================================================
--- scummvm/trunk/engines/drascula/sound.cpp	2008-09-16 07:25:27 UTC (rev 34570)
+++ scummvm/trunk/engines/drascula/sound.cpp	2008-09-16 08:10:08 UTC (rev 34571)
@@ -150,7 +150,18 @@
 	if (_arj.open(fname)) {
 		int soundSize = _arj.size();
 		byte *soundData = (byte *)malloc(soundSize);
-		_arj.seek(32);
+
+		if (!(!strcmp(fname, "3.als") && soundSize == 145166 && _lang != kSpanish)) {
+			_arj.seek(32);
+		} else {
+			// WORKAROUND: File 3.als with English speech files has a big silence at
+			// its beginning and end. We seek past the silence at the beginning,
+			// and ignore the silence at the end
+			// Fixes bug #2111815 - "DRASCULA: Voice delayed"
+			_arj.seek(73959, SEEK_SET);
+			soundSize = 117158 - 73959;
+		}
+
 		_arj.read(soundData, soundSize);
 		_arj.close();
 


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