aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2015-09-09 17:23:23 +0300
committerFilippos Karapetis2015-09-09 17:23:23 +0300
commit2dc27b57a68cfa9ddab48b193f9a7bb6276aff58 (patch)
tree881ed2a765ce64dce9fe23b7152464824b1766b3
parent1a92f869b8b34f70eb41ed6cad0937f9d45ba46a (diff)
downloadscummvm-rg350-2dc27b57a68cfa9ddab48b193f9a7bb6276aff58.tar.gz
scummvm-rg350-2dc27b57a68cfa9ddab48b193f9a7bb6276aff58.tar.bz2
scummvm-rg350-2dc27b57a68cfa9ddab48b193f9a7bb6276aff58.zip
ZVISION: Properly handle monophonic videos in the demo version of ZGI
-rw-r--r--engines/zvision/video/zork_avi_decoder.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/zvision/video/zork_avi_decoder.cpp b/engines/zvision/video/zork_avi_decoder.cpp
index fb6bdbab91..1d23546551 100644
--- a/engines/zvision/video/zork_avi_decoder.cpp
+++ b/engines/zvision/video/zork_avi_decoder.cpp
@@ -55,7 +55,9 @@ void ZorkAVIDecoder::ZorkAVIAudioTrack::queueSound(Common::SeekableReadStream *s
delete stream;
if (chunk.data) {
- byte flags = Audio::FLAG_16BITS | Audio::FLAG_STEREO;
+ byte flags = Audio::FLAG_16BITS;
+ if (_wvInfo.channels == 2)
+ flags |= Audio::FLAG_STEREO;
#ifdef SCUMM_LITTLE_ENDIAN
// RawChunkStream produces native endianness int16
flags |= Audio::FLAG_LITTLE_ENDIAN;