[Scummvm-cvs-logs] scummvm master -> 7eef26268c9abf5f61a32f547a5037ac1c19e869

DrMcCoy drmccoy at drmccoy.de
Fri Apr 13 04:30:17 CEST 2012


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:
7eef26268c VIDEO: Fix SMK 16bit audio on BE systems


Commit: 7eef26268c9abf5f61a32f547a5037ac1c19e869
    https://github.com/scummvm/scummvm/commit/7eef26268c9abf5f61a32f547a5037ac1c19e869
Author: Sven Hesse (drmccoy at users.sourceforge.net)
Date: 2012-04-12T19:29:26-07:00

Commit Message:
VIDEO: Fix SMK 16bit audio on BE systems

Changed paths:
    video/smk_decoder.cpp



diff --git a/video/smk_decoder.cpp b/video/smk_decoder.cpp
index e0e771f..0840283 100644
--- a/video/smk_decoder.cpp
+++ b/video/smk_decoder.cpp
@@ -709,14 +709,14 @@ void SmackerDecoder::queueCompressedBuffer(byte *buffer, uint32 bufferSize,
 
 	if (isStereo) {
 		if (is16Bits) {
-			bases[1] = FROM_BE_16(audioBS.getBits(16));
+			bases[1] = SWAP_BYTES_16(audioBS.getBits(16));
 		} else {
 			bases[1] = audioBS.getBits(8);
 		}
 	}
 
 	if (is16Bits) {
-		bases[0] = FROM_BE_16(audioBS.getBits(16));
+		bases[0] = SWAP_BYTES_16(audioBS.getBits(16));
 	} else {
 		bases[0] = audioBS.getBits(8);
 	}






More information about the Scummvm-git-logs mailing list