aboutsummaryrefslogtreecommitdiff
path: root/engines/pegasus
diff options
context:
space:
mode:
authorMatthew Hoops2012-04-05 15:58:35 -0400
committerMatthew Hoops2012-04-05 15:58:35 -0400
commit87fd7e2d357928df0b3ba4b596bcbc016a9ee2e6 (patch)
tree04d0e7b5a9d8ecc8811ca7527a5b5ed61cd53e3b /engines/pegasus
parent983bd16bb78b1a6aa8872f2086dbcbca6954f2fb (diff)
downloadscummvm-rg350-87fd7e2d357928df0b3ba4b596bcbc016a9ee2e6.tar.gz
scummvm-rg350-87fd7e2d357928df0b3ba4b596bcbc016a9ee2e6.tar.bz2
scummvm-rg350-87fd7e2d357928df0b3ba4b596bcbc016a9ee2e6.zip
PEGASUS: Warn when a sound file can't be found
Diffstat (limited to 'engines/pegasus')
-rw-r--r--engines/pegasus/sound.cpp4
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) {