From 0e70439d68c061ce3263ec31b8d03a9ead047304 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 24 Oct 2024 03:22:18 -0500 Subject: [PATCH] initialize selCore... maybe issue #2180 --- src/engine/platform/ym2203.cpp | 1 + src/engine/platform/ym2608.cpp | 1 + src/engine/platform/ym2610shared.h | 1 + 3 files changed, 3 insertions(+) diff --git a/src/engine/platform/ym2203.cpp b/src/engine/platform/ym2203.cpp index f346882ee..c85ba93cb 100644 --- a/src/engine/platform/ym2203.cpp +++ b/src/engine/platform/ym2203.cpp @@ -1398,6 +1398,7 @@ int DivPlatformYM2203::init(DivEngine* p, int channels, int sugRate, const DivCo fm->set_fidelity(ymfm::OPN_FIDELITY_MIN); // YM2149, 2MHz ay=new DivPlatformAY8910(true,chipClock,ayDiv); + ay->setCore(0); ay->init(p,3,sugRate,ayFlags); ay->toggleRegisterDump(true); setFlags(flags); diff --git a/src/engine/platform/ym2608.cpp b/src/engine/platform/ym2608.cpp index f025562f7..8cf053e94 100644 --- a/src/engine/platform/ym2608.cpp +++ b/src/engine/platform/ym2608.cpp @@ -2036,6 +2036,7 @@ int DivPlatformYM2608::init(DivEngine* p, int channels, int sugRate, const DivCo fm->set_fidelity(ymfm::OPN_FIDELITY_MIN); // YM2149, 2MHz ay=new DivPlatformAY8910(true,chipClock,ayDiv,48); + ay->setCore(0); ay->init(p,3,sugRate,ayFlags); ay->toggleRegisterDump(true); setFlags(flags); diff --git a/src/engine/platform/ym2610shared.h b/src/engine/platform/ym2610shared.h index 2e6d738ea..ea9d66031 100644 --- a/src/engine/platform/ym2610shared.h +++ b/src/engine/platform/ym2610shared.h @@ -348,6 +348,7 @@ class DivPlatformYM2610Base: public DivPlatformOPN { setFlags(flags); // YM2149, 2MHz ay=new DivPlatformAY8910(true,chipClock,32,144); + ay->setCore(0); ay->init(p,3,sugRate,ayFlags); ay->toggleRegisterDump(true); return 0;