aboutsummaryrefslogtreecommitdiff
path: root/sound/mods
diff options
context:
space:
mode:
authorMax Horn2010-05-25 11:35:16 +0000
committerMax Horn2010-05-25 11:35:16 +0000
commit7bbbaf7d8cc382dd3c6dfc6dcaacf9c902523525 (patch)
treea4d40d6cecbb64c8a12a1f15582afc74623e5e42 /sound/mods
parenta83aafab545cbfdf47e5f724a856d1cbbb7914d0 (diff)
downloadscummvm-rg350-7bbbaf7d8cc382dd3c6dfc6dcaacf9c902523525.tar.gz
scummvm-rg350-7bbbaf7d8cc382dd3c6dfc6dcaacf9c902523525.tar.bz2
scummvm-rg350-7bbbaf7d8cc382dd3c6dfc6dcaacf9c902523525.zip
Patch #3006178: "rjp1: calculate sample length correctly"
Fixes bug #3001110: "FOTAQ Amiga: crashes reporting assertion failure" Added a NEWS entry to the patch. svn-id: r49210
Diffstat (limited to 'sound/mods')
-rw-r--r--sound/mods/rjp1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mods/rjp1.cpp b/sound/mods/rjp1.cpp
index fc1b49e9e9..be376d61a4 100644
--- a/sound/mods/rjp1.cpp
+++ b/sound/mods/rjp1.cpp
@@ -422,7 +422,7 @@ void Rjp1::setupNote(Rjp1Channel *channel, int16 period) {
channel->envelopeMode = 4;
channel->data = channel->waveData;
channel->pos = READ_BE_UINT16(note + 16);
- channel->len = READ_BE_UINT16(note + 18);
+ channel->len = channel->pos + READ_BE_UINT16(note + 18);
channel->setupNewNote = true;
}
}