aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/sound.h
diff options
context:
space:
mode:
authorThierry Crozat2014-09-08 21:42:18 +0100
committerThierry Crozat2014-09-08 21:42:29 +0100
commit83bb4fdb38fa2bdff7ea2cdded7c7afbbff40812 (patch)
tree4cd7a9d49a987c3c650ee1d8d25a61a9f392ce04 /engines/sword1/sound.h
parent5f9febee3d5a103eadc71b50d02d9eb548c0e97f (diff)
downloadscummvm-rg350-83bb4fdb38fa2bdff7ea2cdded7c7afbbff40812.tar.gz
scummvm-rg350-83bb4fdb38fa2bdff7ea2cdded7c7afbbff40812.tar.bz2
scummvm-rg350-83bb4fdb38fa2bdff7ea2cdded7c7afbbff40812.zip
I18N: Really fix speech endianness heuristic on big endian system
The previous commit was wrong because the endianness does not only impact the data sample values but also the way the speech is uncompressed.
Diffstat (limited to 'engines/sword1/sound.h')
-rw-r--r--engines/sword1/sound.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/sword1/sound.h b/engines/sword1/sound.h
index 54006bd8b4..e65e797934 100644
--- a/engines/sword1/sound.h
+++ b/engines/sword1/sound.h
@@ -102,6 +102,7 @@ public:
void engine();
void checkSpeechFileEndianness();
+ double endiannessHeuristicValue(int16* data, uint32 dataSize, uint32 &maxSamples);
private:
uint8 _sfxVolL, _sfxVolR, _speechVolL, _speechVolR;