diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/director/director.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/director/director.cpp b/engines/director/director.cpp index ec35022b4a..f2ad5db3cc 100644 --- a/engines/director/director.cpp +++ b/engines/director/director.cpp @@ -50,9 +50,6 @@ DirectorEngine::DirectorEngine(OSystem *syst, const DirectorGameDescription *gam g_director = this; - if (!_mixer->isReady()) - error("Sound initialization failed"); - // Setup mixer syncSoundSettings(); @@ -116,6 +113,10 @@ DirectorEngine::~DirectorEngine() { Common::Error DirectorEngine::run() { debug("Starting v%d Director game", getVersion()); + if (!_mixer->isReady()) { + return Common::kAudioDeviceInitFailed; + } + _currentPalette = nullptr; _macBinary = nullptr; |