OPL: fix OPL3-L rate when using YMF262-LLE

issue #1802
This commit is contained in:
tildearrow 2024-04-30 13:41:33 -05:00
parent f7d1cc74c9
commit 38e8327f0d
2 changed files with 6 additions and 1 deletions

View file

@ -2461,7 +2461,11 @@ void DivPlatformOPL::setFlags(const DivConfig& flags) {
switch (flags.getInt("chipType",0)) {
case 1: // YMF289B
chipFreqBase=32768*684;
rate=chipClock/768;
if (emuCore==2) {
rate=chipClock/684;
} else {
rate=chipClock/768;
}
chipRateBase=chipClock/684;
downsample=true;
totalOutputs=2; // Stereo output only

View file

@ -82,6 +82,7 @@ class DivPlatformOPL: public DivDispatch {
bool lastSH2;
bool lastSY;
bool waitingBusy;
int downsamplerStep;
unsigned char* adpcmBMem;
size_t adpcmBMemLen;