aboutsummaryrefslogtreecommitdiff
path: root/scumm/smush
diff options
context:
space:
mode:
authorMax Horn2003-12-24 17:42:22 +0000
committerMax Horn2003-12-24 17:42:22 +0000
commit859a9c01290dc6022f99c7fd99ff91d62a3153dc (patch)
tree34a40bd53ce6c75e3685ec837c4da4c0a38d01f7 /scumm/smush
parent5665d137f6bae488ac19539acdcfe441f514a9d6 (diff)
downloadscummvm-rg350-859a9c01290dc6022f99c7fd99ff91d62a3153dc.tar.gz
scummvm-rg350-859a9c01290dc6022f99c7fd99ff91d62a3153dc.tar.bz2
scummvm-rg350-859a9c01290dc6022f99c7fd99ff91d62a3153dc.zip
o Added SoundMixer::isReady()
o Removed SoundMixer::bindToSystem() o In scumm, replaced _silentMixer, _silentDigitalImuse and _noDigitalSamples by SoundMixer::isReady() svn-id: r11893
Diffstat (limited to 'scumm/smush')
-rw-r--r--scumm/smush/smush_mixer.cpp2
-rw-r--r--scumm/smush/smush_mixer.h1
-rw-r--r--scumm/smush/smush_player.cpp1
3 files changed, 1 insertions, 3 deletions
diff --git a/scumm/smush/smush_mixer.cpp b/scumm/smush/smush_mixer.cpp
index 3c9b831d78..69d85c6a22 100644
--- a/scumm/smush/smush_mixer.cpp
+++ b/scumm/smush/smush_mixer.cpp
@@ -118,7 +118,7 @@ bool SmushMixer::handleFrame() {
flags |= SoundMixer::FLAG_UNSIGNED;
}
- if (_silentMixer == false) {
+ if (_mixer->isReady()) {
if (!_channels[i].handle.isActive())
_mixer->newStream(&_channels[i].handle, rate, flags, 500000);
_mixer->appendStream(_channels[i].handle, data, size);
diff --git a/scumm/smush/smush_mixer.h b/scumm/smush/smush_mixer.h
index 74daa1091d..c0eacd809b 100644
--- a/scumm/smush/smush_mixer.h
+++ b/scumm/smush/smush_mixer.h
@@ -53,7 +53,6 @@ public:
bool handleFrame();
bool stop();
bool update();
- bool _silentMixer;
};
} // End of namespace Scumm
diff --git a/scumm/smush/smush_player.cpp b/scumm/smush/smush_player.cpp
index aa23b1f15e..9491f1e44c 100644
--- a/scumm/smush/smush_player.cpp
+++ b/scumm/smush/smush_player.cpp
@@ -252,7 +252,6 @@ void SmushPlayer::init() {
_smixer = new SmushMixer(_scumm->_mixer);
_scumm->setDirtyColors(0, 255);
- _smixer->_silentMixer = _scumm->_silentDigitalImuse;
_dst = _scumm->virtscr[0].screenPtr + _scumm->virtscr[0].xstart;
g_timer->installTimerProc(&timerCallback, _speed, this);