diff options
| author | Travis Howell | 2003-09-13 06:56:47 +0000 |
|---|---|---|
| committer | Travis Howell | 2003-09-13 06:56:47 +0000 |
| commit | e8f7f2a4e1233a8d67ba8692e698e165999a95bb (patch) | |
| tree | bec79aad7d43bd6005cc7c3dd32a3b6149ec92f5 | |
| parent | ac8e16cc2e282ae246b339915cc734526f8a1ac3 (diff) | |
| download | scummvm-rg350-e8f7f2a4e1233a8d67ba8692e698e165999a95bb.tar.gz scummvm-rg350-e8f7f2a4e1233a8d67ba8692e698e165999a95bb.tar.bz2 scummvm-rg350-e8f7f2a4e1233a8d67ba8692e698e165999a95bb.zip | |
Another fm towns sound fix from Hibernatus
svn-id: r10209
| -rw-r--r-- | scumm/sound.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/sound.cpp b/scumm/sound.cpp index 91f929909f..d40ff40c42 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -350,6 +350,8 @@ void Sound::playSound(int soundID) { int waveSize = READ_LE_UINT32(ptr + 0x0C); int loopStart = READ_LE_UINT32(ptr + 0x10); int loopEnd = READ_LE_UINT32(ptr + 0x14); + if (loopEnd < waveSize && loopEnd > 0) + waveSize = loopEnd; // it's not exactly * 10, maybe it's not even linear, but * 10 sounds ok. rate = READ_LE_UINT32(ptr + 0x18) * 10; |
