summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/soundux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soundux.cpp b/src/soundux.cpp
index 5b46f07..3af6be4 100644
--- a/src/soundux.cpp
+++ b/src/soundux.cpp
@@ -1145,7 +1145,7 @@ void S9xSetPlaybackRate (uint32 playback_rate)
if(playback_rate) {
// notaz: calclulate a value (let's call it freqbase) to simplify channel freq calculations later.
- so.freqbase = (FIXED_POINT<<11) / playback_rate;
+ so.freqbase = (FIXED_POINT<<11) / (playback_rate * 33 / 32);
// now precalculate env rates for S9xSetEnvRate
static int steps [] =
{