aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/sci/sfx/player/polled.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/sci/sfx/player/polled.cpp b/engines/sci/sfx/player/polled.cpp
index 58322f4aa7..4d01e3fcfb 100644
--- a/engines/sci/sfx/player/polled.cpp
+++ b/engines/sci/sfx/player/polled.cpp
@@ -282,6 +282,9 @@ static int pp_set_option(char *name, char *value) {
}
static int pp_init(ResourceManager *resmgr, int expected_latency) {
+ if (!g_system->getMixer()->isReady())
+ return SFX_ERROR;
+
Resource *res = NULL, *res2 = NULL;
/* FIXME Temporary hack to detect Amiga games. */