diff options
author | Max Horn | 2003-07-07 02:32:20 +0000 |
---|---|---|
committer | Max Horn | 2003-07-07 02:32:20 +0000 |
commit | 001e7bb7174e1f12958a2ca34831ecd1592e2678 (patch) | |
tree | 998aeab595ffd58101bc1fee4066f183792a67f2 /sky | |
parent | e72f9e813bca683a6750ea988da240eb78896c46 (diff) | |
download | scummvm-rg350-001e7bb7174e1f12958a2ca34831ecd1592e2678.tar.gz scummvm-rg350-001e7bb7174e1f12958a2ca34831ecd1592e2678.tar.bz2 scummvm-rg350-001e7bb7174e1f12958a2ca34831ecd1592e2678.zip |
another fix kudos to LavosSpawn
svn-id: r8829
Diffstat (limited to 'sky')
-rw-r--r-- | sky/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sky/sound.cpp b/sky/sound.cpp index 80b0b8ce0c..93f696b5f8 100644 --- a/sky/sound.cpp +++ b/sky/sound.cpp @@ -1223,12 +1223,12 @@ bool SkySound::startSpeech(uint16 textNum) { return false; } - uint32 speechSize = ((dataFileHeader *)speechData)->s_tot_size; + uint32 speechSize = ((dataFileHeader *)speechData)->s_tot_size - sizeof(dataFileHeader); uint8 *playBuffer = (uint8 *)malloc(speechSize); memcpy(playBuffer, speechData + sizeof(dataFileHeader), speechSize); free(speechData); - _spSlot = _mixer->playRaw(&_ingameSpeech, playBuffer, speechSize - 64, 11025, SoundMixer::FLAG_UNSIGNED | SoundMixer::FLAG_AUTOFREE); + _spSlot = _mixer->playRaw(&_ingameSpeech, playBuffer, speechSize, 11025, SoundMixer::FLAG_UNSIGNED | SoundMixer::FLAG_AUTOFREE); return true; } |