From a1dc56429c3d61afe960924abdc4ee241c4c9fe6 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 1 Jul 2010 17:42:39 +0000 Subject: SCI: Removed duplicate warning for missing audio samples svn-id: r50560 --- engines/sci/sound/audio.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/sound/audio.cpp b/engines/sci/sound/audio.cpp index ed9061ab81..2e92754cad 100644 --- a/engines/sci/sound/audio.cpp +++ b/engines/sci/sound/audio.cpp @@ -70,10 +70,11 @@ int AudioPlayer::startAudio(uint16 module, uint32 number) { _mixer->playStream(Audio::Mixer::kSpeechSoundType, &_audioHandle, audioStream); return sampleLen; } else { - warning("startAudio: unable to create stream for audio number %d, module %d", number, module); + // Don't throw a warning in this case. getAudioStream() already has. Some games + // do miss audio entries (perhaps because of a typo, or because they were simply + // forgotten). + return 0; } - - return 0; } int AudioPlayer::wPlayAudio(uint16 module, uint32 tuple) { -- cgit v1.2.3