diff options
author | Paul Gilbert | 2013-11-02 18:38:22 -0400 |
---|---|---|
committer | Paul Gilbert | 2013-11-02 18:38:22 -0400 |
commit | b4a0dfc903783b722620533994d94c64d600e958 (patch) | |
tree | f39f99f5a15453c74cebcc4d69b832f5ee86a4b2 /engines | |
parent | 9cb4deda18f1d7f9e638cf52fef44d303a2cc6e6 (diff) | |
download | scummvm-rg350-b4a0dfc903783b722620533994d94c64d600e958.tar.gz scummvm-rg350-b4a0dfc903783b722620533994d94c64d600e958.tar.bz2 scummvm-rg350-b4a0dfc903783b722620533994d94c64d600e958.zip |
TSAGE: Okay, now fixing pops at the end of sound effects.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tsage/sound.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/tsage/sound.cpp b/engines/tsage/sound.cpp index db694e9491..69dfb1a74c 100644 --- a/engines/tsage/sound.cpp +++ b/engines/tsage/sound.cpp @@ -3107,6 +3107,8 @@ void SoundBlasterDriver::playSound(const byte *channelData, int dataOffset, int // Make a copy of the buffer int dataSize = g_vm->_memoryManager.getSize(channelData); + dataSize -= 18; + byte *soundData = (byte *)malloc(dataSize - dataOffset); Common::copy(_channelData, _channelData + (dataSize - dataOffset), soundData); |