From ae7c090a4aded74c58d372066635690eaf70645e Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 27 Apr 2024 00:35:17 -0500 Subject: [PATCH] YM2608-LLE, part 6 RSS now works next up is ADPCM... oh man --- src/engine/platform/ym2608.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/platform/ym2608.cpp b/src/engine/platform/ym2608.cpp index 95501a8bc..302b9dcf6 100644 --- a/src/engine/platform/ym2608.cpp +++ b/src/engine/platform/ym2608.cpp @@ -532,6 +532,13 @@ void DivPlatformYM2608::acquire_lle(short** buf, size_t len) { fm_lle.input.a0=1; fm_lle.input.data=w.val; + // TEMPORARY: until we can determine whether volumes are actually inverted in hardware + if (w.addr==0x11) { + fm_lle.input.data=w.val^0x3f; + } else if (w.addr>=0x18 && w.addr<=0x1d) { + fm_lle.input.data=w.val^0x1f; + } + delay=2; //logV("VAL %.2x",w.val);