aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound_towns.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2008-08-02 14:35:38 +0000
committerFlorian Kagerer2008-08-02 14:35:38 +0000
commitb58beb242f36f31a25f8cf1b3117cf85d39eb9ee (patch)
tree68b983759d032b72c81943af4edb24033df51e39 /engines/kyra/sound_towns.cpp
parenta023dba94147aaaeacf72c2f80ac00e09fe723fb (diff)
downloadscummvm-rg350-b58beb242f36f31a25f8cf1b3117cf85d39eb9ee.tar.gz
scummvm-rg350-b58beb242f36f31a25f8cf1b3117cf85d39eb9ee.tar.bz2
scummvm-rg350-b58beb242f36f31a25f8cf1b3117cf85d39eb9ee.zip
HOF: bug fix for FM-Towns music when using output rates other than 22050 khz
svn-id: r33523
Diffstat (limited to 'engines/kyra/sound_towns.cpp')
-rw-r--r--engines/kyra/sound_towns.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/kyra/sound_towns.cpp b/engines/kyra/sound_towns.cpp
index 0f2b916c9d..ec1962a58f 100644
--- a/engines/kyra/sound_towns.cpp
+++ b/engines/kyra/sound_towns.cpp
@@ -2363,7 +2363,7 @@ TownsPC98_OpnDriver::TownsPC98_OpnDriver(Audio::Mixer *mixer, OpnType type) :
_numSSG(type == OD_TOWNS ? 0 : 3), _hasADPCM(type == OD_TYPE86 ? true : false),
_numChan(type == OD_TYPE26 ? 3 : 6), _hasStereo(type == OD_TYPE26 ? false : true) {
setTempo(84);
- _baserate = (double)getRate() / 10368.0;
+ _baserate = (486202500.0 / (double)getRate()) / 10368.0;
}
TownsPC98_OpnDriver::~TownsPC98_OpnDriver() {