diff options
author | Max Horn | 2007-07-01 19:59:42 +0000 |
---|---|---|
committer | Max Horn | 2007-07-01 19:59:42 +0000 |
commit | 19bb631e9493ea3586acdef2cd8c13f3aac4f217 (patch) | |
tree | 7508ffd44697669a2452345754b43ae4f3031969 /sound/mods/paula.cpp | |
parent | 89a7005148d40efc25e75bed2824c86c42a8babf (diff) | |
download | scummvm-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
Diffstat (limited to 'sound/mods/paula.cpp')
-rw-r--r-- | sound/mods/paula.cpp | 2 |
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)); |