aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2007-07-01 19:59:42 +0000
committerMax Horn2007-07-01 19:59:42 +0000
commit19bb631e9493ea3586acdef2cd8c13f3aac4f217 (patch)
tree7508ffd44697669a2452345754b43ae4f3031969
parent89a7005148d40efc25e75bed2824c86c42a8babf (diff)
downloadscummvm-rg350-19bb631e9493ea3586acdef2cd8c13f3aac4f217.tar.gz
scummvm-rg350-19bb631e9493ea3586acdef2cd8c13f3aac4f217.tar.bz2
scummvm-rg350-19bb631e9493ea3586acdef2cd8c13f3aac4f217.zip
Fix looping effect (at least DrMcCoy says it fixes it somehow, and I trust him in that :)
svn-id: r27835
-rw-r--r--sound/mods/paula.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mods/paula.cpp b/sound/mods/paula.cpp
index d09ddbe76d..cfd9ebff11 100644
--- a/sound/mods/paula.cpp
+++ b/sound/mods/paula.cpp
@@ -155,7 +155,7 @@ int Paula::readBufferIntern(int16 *buffer, const int numSamples) {
// Repeat as long as necessary.
while (neededSamples > 0) {
- offset %= sLen;
+ offset = 0;
// Compute the number of samples to generate (see above) and mix 'em.
end = MIN(neededSamples, (int)((sLen - offset + rate - 1) / rate));