aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/sound/audio.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-12 11:41:22 +0000
committerFilippos Karapetis2010-06-12 11:41:22 +0000
commitf4739f9f68026d5e3ea3304777260cef3101a031 (patch)
treede77b05835741f85608bdb35661988d567aafda2 /engines/sci/sound/audio.cpp
parent277a700e6743b481eba8efb86fe37c339d880279 (diff)
downloadscummvm-rg350-f4739f9f68026d5e3ea3304777260cef3101a031.tar.gz
scummvm-rg350-f4739f9f68026d5e3ea3304777260cef3101a031.tar.bz2
scummvm-rg350-f4739f9f68026d5e3ea3304777260cef3101a031.zip
Added debug output to kDoAudio and some music commands. Also added a warning when an audio stream can't be created. Finally, the debug level of the MIDI parser debug output has been raised to 4, as it's too verbose
svn-id: r49605
Diffstat (limited to 'engines/sci/sound/audio.cpp')
-rw-r--r--engines/sci/sound/audio.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/sound/audio.cpp b/engines/sci/sound/audio.cpp
index 62cfcd9621..b0b9a73e00 100644
--- a/engines/sci/sound/audio.cpp
+++ b/engines/sci/sound/audio.cpp
@@ -69,6 +69,8 @@ int AudioPlayer::startAudio(uint16 module, uint32 number) {
_wPlayFlag = false;
_mixer->playStream(Audio::Mixer::kSpeechSoundType, &_audioHandle, audioStream);
return sampleLen;
+ } else {
+ warning("startAudio: unable to create stream for audio number %d, module %d", number, module);
}
return 0;
@@ -81,6 +83,8 @@ int AudioPlayer::wPlayAudio(uint16 module, uint32 tuple) {
int sampleLen = 0;
Audio::AudioStream *audioStream = getAudioStream(module, tuple, &sampleLen);
+ if (!audioStream)
+ warning("wPlayAudio: unable to create stream for audio tuple %d, module %d", tuple, module);
delete audioStream;
_wPlayFlag = true;
return sampleLen;