From 4c4eb1394cf195952b59e7e06963736df41eeb5f Mon Sep 17 00:00:00 2001 From: Norbert Lange Date: Tue, 4 Aug 2009 17:43:56 +0000 Subject: added warning should the sound files not be available (intro will hang if there is no musictimer) svn-id: r43049 --- engines/kyra/sound_amiga.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/kyra') diff --git a/engines/kyra/sound_amiga.cpp b/engines/kyra/sound_amiga.cpp index 59f1eaf4cd..329969eff0 100644 --- a/engines/kyra/sound_amiga.cpp +++ b/engines/kyra/sound_amiga.cpp @@ -41,7 +41,10 @@ const char *const SoundAmiga::kFilenameTable[3][2] = { }; SoundAmiga::SoundAmiga(KyraEngine_v1 *vm, Audio::Mixer *mixer) - : Sound(vm, mixer), _driver(0), _musicHandle(), _fileLoaded(kFileNone) { + : Sound(vm, mixer), + _driver(0), + _musicHandle(), + _fileLoaded(kFileNone) { } SoundAmiga::~SoundAmiga() { @@ -51,7 +54,6 @@ SoundAmiga::~SoundAmiga() { bool SoundAmiga::init() { _driver = new Audio::MaxTrax(_mixer->getOutputRate(), true); - return _driver != 0; } -- cgit v1.2.3