From 74e429fae24e878c4b464b7cc4e863e12c8a051c Mon Sep 17 00:00:00 2001 From: cam900 Date: Thu, 5 Jan 2023 08:51:25 +0900 Subject: [PATCH] Fix pitch --- src/engine/platform/opl.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/engine/platform/opl.cpp b/src/engine/platform/opl.cpp index ecb68bdf2..8e1d1b11e 100644 --- a/src/engine/platform/opl.cpp +++ b/src/engine/platform/opl.cpp @@ -1488,8 +1488,8 @@ void DivPlatformOPL::reset() { } */ if (downsample) { - const unsigned int downsampledRate=(unsigned int)((double)rate*rate/chipRateBase); - OPL3_Reset(&fm,downsampledRate); +// const unsigned int downsampledRate=(unsigned int)((double)rate*rate/chipRateBase); + OPL3_Reset(&fm,44100); } else { OPL3_Reset(&fm,rate); } @@ -1733,8 +1733,8 @@ void DivPlatformOPL::setFlags(const DivConfig& flags) { switch (flags.getInt("chipType",0)) { case 1: // YMF289B chipFreqBase=32768*684; - rate=chipClock/684; - chipRateBase=chipClock/768; + rate=chipClock/768; + chipRateBase=chipClock/684; downsample=true; break; default: // YMF262