diff options
Diffstat (limited to 'engines/cine/sound.cpp')
-rw-r--r-- | engines/cine/sound.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp index b92c5374bd..6cf3d9b5b9 100644 --- a/engines/cine/sound.cpp +++ b/engines/cine/sound.cpp @@ -1052,12 +1052,10 @@ void PaulaSound::playSound(int channel, int frequency, const uint8 *data, int si // TODO: handle volume slides and repeat debugC(5, kCineDebugSound, "PaulaSound::playSound() channel %d size %d", channel, size); stopSound(channel); - size = MIN<int>(size - SPL_HDR_SIZE, READ_BE_UINT16(data + 4)); - // TODO: consider skipping the header in loadSpl directly if (size > 0) { byte *sound = (byte *)malloc(size); if (sound) { - memcpy(sound, data + SPL_HDR_SIZE, size); + memcpy(sound, data, size); playSoundChannel(channel, frequency, sound, size, volume); } } |