From 87fd7e2d357928df0b3ba4b596bcbc016a9ee2e6 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Thu, 5 Apr 2012 15:58:35 -0400 Subject: PEGASUS: Warn when a sound file can't be found --- engines/pegasus/sound.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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) { -- cgit v1.2.3