aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2010-05-31 12:36:42 +0000
committerFilippos Karapetis2010-05-31 12:36:42 +0000
commitba11596572c32c3282f03c643dc23f6050210a08 (patch)
treec95cebd15edcc31a7ebf4a163104db5f79fa0931 /engines/sci
parentff40247376606412556e4cc39b4da3361842dd3c (diff)
downloadscummvm-rg350-ba11596572c32c3282f03c643dc23f6050210a08.tar.gz
scummvm-rg350-ba11596572c32c3282f03c643dc23f6050210a08.tar.bz2
scummvm-rg350-ba11596572c32c3282f03c643dc23f6050210a08.zip
SCI: Silenced warning when no audio decoder is compiled in
svn-id: r49351
Diffstat (limited to 'engines/sci')
-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 f64760b53e..7748c0505b 100644
--- a/engines/sci/sound/audio.cpp
+++ b/engines/sci/sound/audio.cpp
@@ -235,6 +235,7 @@ Audio::RewindableAudioStream *AudioPlayer::getAudioStream(uint32 number, uint32
uint32 audioCompressionType = audioRes->getAudioCompressionType();
if (audioCompressionType) {
+#if (defined(USE_MAD) || defined(USE_VORBIS) || defined(USE_FLAC))
// Compressed audio made by our tool
byte *compressedData = (byte *)malloc(audioRes->size);
assert(compressedData);
@@ -261,6 +262,9 @@ Audio::RewindableAudioStream *AudioPlayer::getAudioStream(uint32 number, uint32
#endif
break;
}
+#else
+ error("Compressed audio file encountered, but no appropriate decoder is compiled in");
+#endif
} else {
// Original source file
if (audioRes->_headerSize > 0) {