From ef1860cad8f9bfd33e0cae1af32ddead2f5bf876 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Fri, 9 May 2025 14:28:09 -0500 Subject: [PATCH] YM2608: fix crash when using ymfm and CSM you see, this is why I need to perform OPN unification... --- src/engine/platform/ym2608.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/platform/ym2608.cpp b/src/engine/platform/ym2608.cpp index 5cb6932c2..b3099c8a0 100644 --- a/src/engine/platform/ym2608.cpp +++ b/src/engine/platform/ym2608.cpp @@ -503,7 +503,7 @@ void DivPlatformYM2608::acquire_ymfm(short** buf, size_t len) { } for (int i=(9+isCSM); i<(15+isCSM); i++) { - oscBuf[i]->putSample(h,(adpcmAChan[i-9-isCSM]->get_last_out(0)+adpcmAChan[i-9]->get_last_out(1))>>1); + oscBuf[i]->putSample(h,(adpcmAChan[i-9-isCSM]->get_last_out(0)+adpcmAChan[i-9-isCSM]->get_last_out(1))>>1); } oscBuf[15+isCSM]->putSample(h,(abe->get_last_out(0)+abe->get_last_out(1))>>1);