diff options
author | Johannes Schickel | 2009-05-23 23:58:40 +0000 |
---|---|---|
committer | Johannes Schickel | 2009-05-23 23:58:40 +0000 |
commit | b28279accccdfe65096bb58bb8368f8a43c609d3 (patch) | |
tree | 243c01014c64c622605cce4c369e2d539471d9ce /engines/kyra/sound_lol.cpp | |
parent | dfb6ca6bae37e54cd8477c8313077c22fcd5a1c7 (diff) | |
download | scummvm-rg350-b28279accccdfe65096bb58bb8368f8a43c609d3.tar.gz scummvm-rg350-b28279accccdfe65096bb58bb8368f8a43c609d3.tar.bz2 scummvm-rg350-b28279accccdfe65096bb58bb8368f8a43c609d3.zip |
Cleanup.
svn-id: r40841
Diffstat (limited to 'engines/kyra/sound_lol.cpp')
-rw-r--r-- | engines/kyra/sound_lol.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/kyra/sound_lol.cpp b/engines/kyra/sound_lol.cpp index 862788d524..9759d830cc 100644 --- a/engines/kyra/sound_lol.cpp +++ b/engines/kyra/sound_lol.cpp @@ -106,11 +106,12 @@ bool LoLEngine::snd_playCharacterSpeech(int id, int8 speaker, int) { delete *i; _speechList.clear(); - int32 pt = 0; for (Common::List<const char*>::iterator i = playList.begin(); i != playList.end(); ++i) { - Audio::AudioStream *a = _sound->getVoiceStream(*i, &pt, false); - _speechList.push_back(a); - _activeVoiceFileTotalTime += pt; + Audio::AudioStream *a = _sound->getVoiceStream(*i); + if (a) { + _activeVoiceFileTotalTime += a->getTotalPlayTime(); + _speechList.push_back(a); + } } //_activeVoiceFileTotalTime = _sound->voicePlay(_activeVoiceFile, 255, false, false); |