diff options
Diffstat (limited to 'engines/pegasus')
-rw-r--r-- | engines/pegasus/sound.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/pegasus/sound.cpp b/engines/pegasus/sound.cpp index 3fd7a2a867..bf15858e80 100644 --- a/engines/pegasus/sound.cpp +++ b/engines/pegasus/sound.cpp @@ -54,6 +54,7 @@ void Sound::initFromAIFFFile(const Common::String &fileName) { Common::File *file = new Common::File(); if (!file->open(fileName)) { + warning("Failed to open AIFF file '%s'", fileName.c_str()); delete file; return; } @@ -65,6 +66,9 @@ void Sound::initFromQuickTime(const Common::String &fileName) { disposeSound(); _stream = Audio::makeQuickTimeStream(fileName); + + if (!_stream) + warning("Failed to open QuickTime file '%s'", fileName.c_str()); } void Sound::attachFader(SoundFader *fader) { |