mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 06:41:51 +00:00
SCI: Silenced warning when no audio decoder is compiled in
svn-id: r49351
This commit is contained in:
parent
ff40247376
commit
ba11596572
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user