aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-06-07 20:14:27 +0200
committerBastien Bouclet2018-06-07 20:14:27 +0200
commit3b794d263378476ca5698fa8ce57ed0887343e2c (patch)
treee88471d60b3fb3012525d31079837520b89993d9 /engines/mohawk/myst.cpp
parentb4ae4bcd8c6934e2d4927ee70d5f17ebef9b55c9 (diff)
downloadscummvm-rg350-3b794d263378476ca5698fa8ce57ed0887343e2c.tar.gz
scummvm-rg350-3b794d263378476ca5698fa8ce57ed0887343e2c.tar.bz2
scummvm-rg350-3b794d263378476ca5698fa8ce57ed0887343e2c.zip
MOHAWK: Display a GUI error message when no audio devices are available
Diffstat (limited to 'engines/mohawk/myst.cpp')
-rw-r--r--engines/mohawk/myst.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/mohawk/myst.cpp b/engines/mohawk/myst.cpp
index a01cfdd343..4ff1df2eb7 100644
--- a/engines/mohawk/myst.cpp
+++ b/engines/mohawk/myst.cpp
@@ -347,6 +347,10 @@ void MohawkEngine_Myst::playSoundBlocking(uint16 id) {
Common::Error MohawkEngine_Myst::run() {
MohawkEngine::run();
+ if (!_mixer->isReady()) {
+ return Common::kAudioDeviceInitFailed;
+ }
+
_gfx = new MystGraphics(this);
_video = new VideoManager(this);
_sound = new MystSound(this);