aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner/audio_mixer.cpp
diff options
context:
space:
mode:
authorPeter Kohaut2019-10-13 14:08:49 +0200
committerPeter Kohaut2019-10-13 14:09:47 +0200
commitcd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0 (patch)
tree2fb470e0166eaf4f125778b1675b4a49c20232e4 /engines/bladerunner/audio_mixer.cpp
parent2b0bce60908ec7fb2d1e2c950d4a967bc16e158a (diff)
downloadscummvm-rg350-cd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0.tar.gz
scummvm-rg350-cd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0.tar.bz2
scummvm-rg350-cd7e44f9f92c3aee7b99ecf44e8dbfbb252904d0.zip
BLADERUNNER: Group shapes loading
Diffstat (limited to 'engines/bladerunner/audio_mixer.cpp')
-rw-r--r--engines/bladerunner/audio_mixer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/bladerunner/audio_mixer.cpp b/engines/bladerunner/audio_mixer.cpp
index c31ade8296..fe39f57c43 100644
--- a/engines/bladerunner/audio_mixer.cpp
+++ b/engines/bladerunner/audio_mixer.cpp
@@ -117,6 +117,10 @@ int AudioMixer::playInChannel(int channel, Audio::Mixer::SoundType type, Audio::
audioStream = new Audio::LoopingAudioStream(stream, 0, DisposeAfterUse::YES);
}
+ if (!_vm->_mixer->isReady()) {
+ return -1;
+ }
+
_vm->_mixer->playStream(
type,
&_channels[channel].handle,