aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-14 01:04:09 +0400
committerAlyssa Milburn2011-06-15 17:34:57 +0200
commit25824b20edf81a52a0648fc55d64d6f5973af2c6 (patch)
treef99dda492b2777c52150436ad627ef658c145beb /engines/dreamweb
parent074436985f8c706915c567e31362f0dbb4026008 (diff)
downloadscummvm-rg350-25824b20edf81a52a0648fc55d64d6f5973af2c6.tar.gz
scummvm-rg350-25824b20edf81a52a0648fc55d64d6f5973af2c6.tar.bz2
scummvm-rg350-25824b20edf81a52a0648fc55d64d6f5973af2c6.zip
DREAMWEB: added sound status check
Diffstat (limited to 'engines/dreamweb')
-rw-r--r--engines/dreamweb/dreamweb.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index cf8205c784..5ec60b4249 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -432,12 +432,12 @@ void DreamWebEngine::playSound(uint8 channel, uint8 id, uint8 loops) {
}
bool DreamWebEngine::loadSpeech(const Common::String &filename) {
- debug(1, "loadSpeech(%s)", filename.c_str());
Common::File file;
if (!file.open("speech/" + filename))
return false;
- debug(1, "\tfound speech file");
+ debug(1, "loadSpeech(%s)", filename.c_str());
+
uint size = file.size();
_speechData.resize(size);
file.read(_speechData.begin(), size);
@@ -468,6 +468,10 @@ void DreamWebEngine::soundHandler() {
playSound(1, ch1, 1);
}
}
+ if (!_mixer->isSoundHandleActive(_channelHandle[0]))
+ _context.data.byte(dreamgen::kCh0playing) = 255;
+ if (!_mixer->isSoundHandleActive(_channelHandle[1]))
+ _context.data.byte(dreamgen::kCh1playing) = 255;
}
void DreamWebEngine::loadSounds(uint bank, const Common::String &filename) {