From 8a41736496d4109b2c832ac8b176c5e1ebe9c457 Mon Sep 17 00:00:00 2001 From: Toad King Date: Thu, 14 Jun 2012 23:28:56 -0400 Subject: use the slower, more accurate SPC700 modes hack around sounds being higher pitched than they should be --- src/soundux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 [] = { -- cgit v1.2.3