From 99e3c3fa33fe68fb511b913b590b4f51266eb54e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sun, 10 Nov 2024 05:38:19 -0500 Subject: [PATCH] AY: fix chan osc issue #2235 --- src/engine/platform/ay.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/engine/platform/ay.cpp b/src/engine/platform/ay.cpp index 4b30e85be..9331c6a19 100644 --- a/src/engine/platform/ay.cpp +++ b/src/engine/platform/ay.cpp @@ -1106,9 +1106,6 @@ void DivPlatformAY8910::setFlags(const DivConfig& flags) { } CHECK_CUSTOM_CLOCK; } - for (int i=0; i<3; i++) { - oscBuf[i]->rate=rate; - } if (ay!=NULL) delete ay; switch (flags.getInt("chipType",0)) { @@ -1156,6 +1153,10 @@ void DivPlatformAY8910::setFlags(const DivConfig& flags) { dacRate=rate; } + for (int i=0; i<3; i++) { + oscBuf[i]->rate=rate; + } + stereo=flags.getBool("stereo",false); stereoSep=flags.getInt("stereoSep",0)&255; }