aboutsummaryrefslogtreecommitdiff
path: root/engines/sword1/sound.h
diff options
context:
space:
mode:
authorThierry Crozat2016-06-06 01:48:41 +0100
committerThierry Crozat2016-06-06 01:48:41 +0100
commit503188593afd3d69ee0cfb33d0f4a074ddffa7cc (patch)
tree48df80cc1d9c3842b598a0d76c9d9fdcc08f9452 /engines/sword1/sound.h
parenta7eb756233d554239a8343bde213a725ebd2d5d6 (diff)
downloadscummvm-rg350-503188593afd3d69ee0cfb33d0f4a074ddffa7cc.tar.gz
scummvm-rg350-503188593afd3d69ee0cfb33d0f4a074ddffa7cc.tar.bz2
scummvm-rg350-503188593afd3d69ee0cfb33d0f4a074ddffa7cc.zip
SWORD1: Improve detection of speech data endianness for mac version
Before trying an heuristic on the decoded data it simply checks if we get the expected resource size after decompression. When using the wrong endianness this is unlikely to be the case.
Diffstat (limited to 'engines/sword1/sound.h')
-rw-r--r--engines/sword1/sound.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sword1/sound.h b/engines/sword1/sound.h
index e65e797934..18ee91dff2 100644
--- a/engines/sword1/sound.h
+++ b/engines/sword1/sound.h
@@ -110,7 +110,7 @@ private:
void initCowSystem();
uint32 getSampleId(int32 fxNo);
- int16 *uncompressSpeech(uint32 index, uint32 cSize, uint32 *size);
+ int16 *uncompressSpeech(uint32 index, uint32 cSize, uint32 *size, bool* ok = 0);
void calcWaveVolume(int16 *data, uint32 length);
bool _waveVolume[WAVE_VOL_TAB_LENGTH];
uint16 _waveVolPos;