[Scummvm-cvs-logs] SF.net SVN: scummvm:[35800] scummvm/trunk/engines/scumm/he/sound_he.cpp
Kirben at users.sourceforge.net
Kirben at users.sourceforge.net
Sat Jan 10 11:38:06 CET 2009
Revision: 35800
http://scummvm.svn.sourceforge.net/scummvm/?rev=35800&view=rev
Author: Kirben
Date: 2009-01-10 10:38:06 +0000 (Sat, 10 Jan 2009)
Log Message:
-----------
Correct sound timer, when sound compression is used in HE games.
Modified Paths:
--------------
scummvm/trunk/engines/scumm/he/sound_he.cpp
Modified: scummvm/trunk/engines/scumm/he/sound_he.cpp
===================================================================
--- scummvm/trunk/engines/scumm/he/sound_he.cpp 2009-01-10 10:36:01 UTC (rev 35799)
+++ scummvm/trunk/engines/scumm/he/sound_he.cpp 2009-01-10 10:38:06 UTC (rev 35800)
@@ -637,6 +637,9 @@
if (compType == 17) {
Audio::AudioStream *voxStream = Audio::makeADPCMStream(&stream, false, size, Audio::kADPCMMSIma, rate, (flags & Audio::Mixer::FLAG_STEREO) ? 2 : 1, blockAlign);
+ if (_heChannel[heChannel].timer)
+ _heChannel[heChannel].timer = size * 1000 / rate;
+
sound = (char *)malloc(size * 4);
size = voxStream->readBuffer((int16*)sound, size * 2);
size *= 2; // 16bits.
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