summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorToad King2012-06-14 23:28:56 -0400
committerToad King2012-06-14 23:28:56 -0400
commit8a41736496d4109b2c832ac8b176c5e1ebe9c457 (patch)
treea7f285615b54a69b8d1a9e526bb2993abf528f12 /src
parent536905f71f98156807e748449ac205b2e469876c (diff)
downloadsnes9x2002-8a41736496d4109b2c832ac8b176c5e1ebe9c457.tar.gz
snes9x2002-8a41736496d4109b2c832ac8b176c5e1ebe9c457.tar.bz2
snes9x2002-8a41736496d4109b2c832ac8b176c5e1ebe9c457.zip
use the slower, more accurate SPC700 modes
hack around sounds being higher pitched than they should be
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 [] =
{