[Scummvm-cvs-logs] scummvm master -> 2dc27b57a68cfa9ddab48b193f9a7bb6276aff58

bluegr bluegr at gmail.com
Wed Sep 9 16:24:21 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2dc27b57a6 ZVISION: Properly handle monophonic videos in the demo version of ZGI


Commit: 2dc27b57a68cfa9ddab48b193f9a7bb6276aff58
    https://github.com/scummvm/scummvm/commit/2dc27b57a68cfa9ddab48b193f9a7bb6276aff58
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2015-09-09T17:23:23+03:00

Commit Message:
ZVISION: Properly handle monophonic videos in the demo version of ZGI

Changed paths:
    engines/zvision/video/zork_avi_decoder.cpp



diff --git a/engines/zvision/video/zork_avi_decoder.cpp b/engines/zvision/video/zork_avi_decoder.cpp
index fb6bdba..1d23546 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;






More information about the Scummvm-git-logs mailing list