diff options
author | Filippos Karapetis | 2015-07-21 22:21:38 +0300 |
---|---|---|
committer | Eugene Sandulenko | 2015-12-15 00:05:02 +0100 |
commit | e9f161b3aafb971f3682aa8d6a5647283d8239cf (patch) | |
tree | b051e796d306dffc8c2979e62bab00f5b5d315c6 /engines/lab/readdiff.cpp | |
parent | cb4b86cdb8e1a4f42ec87a09863d8e2f9b3a1f1a (diff) | |
download | scummvm-rg350-e9f161b3aafb971f3682aa8d6a5647283d8239cf.tar.gz scummvm-rg350-e9f161b3aafb971f3682aa8d6a5647283d8239cf.tar.bz2 scummvm-rg350-e9f161b3aafb971f3682aa8d6a5647283d8239cf.zip |
LAB: Clean up readSound(), readMusic() and longDrawMessage()
Diffstat (limited to 'engines/lab/readdiff.cpp')
-rw-r--r-- | engines/lab/readdiff.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/engines/lab/readdiff.cpp b/engines/lab/readdiff.cpp index f2a39b41aa..ebf3d0793f 100644 --- a/engines/lab/readdiff.cpp +++ b/engines/lab/readdiff.cpp @@ -158,7 +158,7 @@ void diffNextFrame() { if (CurBit >= numchunks) { mouseShow(); - if (!NoFlip && !IsBM) { + if (!IsBM) { if (headerdata.fps) { waitForTime(WaitSec, WaitMicros); addCurTime(0L, DelayMicros, &WaitSec, &WaitMicros); @@ -451,14 +451,13 @@ void stopDiffEnd() { StopPlayingEnd = true; while (IsPlaying) { - g_music->checkMusic(); + g_music->updateMusic(); diffNextFrame(); } } } - /*****************************************************************************/ /* Stops the continuous sound from playing. */ /*****************************************************************************/ @@ -466,8 +465,6 @@ void stopSound() { stopsound = true; } - - /*****************************************************************************/ /* Reads in a DIFF file. */ /*****************************************************************************/ @@ -478,16 +475,13 @@ bool readDiff(bool playonce) { } - static byte *mstart; -void readSound() { +void readSound(bool waitTillFinished) { uint32 header_ = 0, size_; uint16 samplespeed_; -// uint16 numchunks = 1; char temp_[5]; -// bool FirstThru = true; byte *storagefordifffile_, **difffile_ = &storagefordifffile_; mstart = *startoffile; /* Make a copy of the pointer to the start of the file */ @@ -526,7 +520,7 @@ void readSound() { swapULong(&size_); if ((header_ == 30) || (header_ == 31)) { - if (mwaitForEffect) { + if (waitTillFinished) { while (g_music->isSoundEffectActive()) { g_music->updateMusic(); waitTOF(); @@ -547,7 +541,7 @@ void readSound() { g_music->playSoundEffect(samplespeed_, musicsize, music); } else if (header_ == 65535L) { - if (mwaitForEffect) { + if (waitTillFinished) { while (g_music->isSoundEffectActive()) { g_music->updateMusic(); waitTOF(); |