[Scummvm-cvs-logs] SF.net SVN: scummvm:[33524] scummvm/trunk/engines/kyra/sound.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Sat Aug 2 16:35:43 CEST 2008


Revision: 33524
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33524&view=rev
Author:   lordhoto
Date:     2008-08-02 14:35:43 +0000 (Sat, 02 Aug 2008)

Log Message:
-----------
Add warning when a voc file is not found.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/sound.cpp

Modified: scummvm/trunk/engines/kyra/sound.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound.cpp	2008-08-02 14:35:38 UTC (rev 33523)
+++ scummvm/trunk/engines/kyra/sound.cpp	2008-08-02 14:35:43 UTC (rev 33524)
@@ -104,6 +104,11 @@
 		fileSize = 0;
 	}
 
+	if (!audioStream) {
+		warning("Couldn't load sound file '%s'", file);
+		return 0;
+	}
+
 	_soundChannels[h].file = file;
 	_mixer->playInputStream(isSfx ? Audio::Mixer::kSFXSoundType : Audio::Mixer::kSpeechSoundType, &_soundChannels[h].channelHandle, audioStream);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list