[Scummvm-git-logs] scummvm branch-2-8 -> 5164b7a0f053ecc4ab025f88aff856efd9c0e87f
AndywinXp
noreply at scummvm.org
Tue Jan 9 22:29:03 UTC 2024
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:
5164b7a0f0 SWORD1: Fix endianness issue in speech handling
Commit: 5164b7a0f053ecc4ab025f88aff856efd9c0e87f
https://github.com/scummvm/scummvm/commit/5164b7a0f053ecc4ab025f88aff856efd9c0e87f
Author: AndywinXp (andywinxp at gmail.com)
Date: 2024-01-09T23:28:54+01:00
Commit Message:
SWORD1: Fix endianness issue in speech handling
Thanks mikro for letting me know about this one,
this fixes #14826.
Changed paths:
engines/sword1/sound.cpp
diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp
index 7fd98fdc07b..e17435d64d6 100644
--- a/engines/sword1/sound.cpp
+++ b/engines/sword1/sound.cpp
@@ -1204,7 +1204,7 @@ int32 Sound::getSpeechSize(byte *compData, uint32 compSize) {
if ((_cowMode == CowWave) || (_cowMode == CowDemo)) {
WaveHeader *waveHeader = (WaveHeader *)compData;
- return (waveHeader->riffSize + 8) - sizeof(WaveHeader);
+ return (FROM_LE_32(waveHeader->riffSize) + 8) - sizeof(WaveHeader);
} else {
Common::MemoryReadStream memStream(compData, compSize);
Audio::RewindableAudioStream *stream = nullptr;
More information about the Scummvm-git-logs
mailing list