From c462e67488b41e9c178e24e71814d23227e1c572 Mon Sep 17 00:00:00 2001 From: Aaron Giles Date: Sun, 4 Apr 2021 17:09:48 -0700 Subject: [PATCH] ymadpcm: Initialize ADPCM-A pans and instrument volume. Fixes some homebrew neogeo sounds. --- src/devices/sound/ymadpcm.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/devices/sound/ymadpcm.cpp b/src/devices/sound/ymadpcm.cpp index 7e7ddcc7f19..65169a610ff 100644 --- a/src/devices/sound/ymadpcm.cpp +++ b/src/devices/sound/ymadpcm.cpp @@ -41,6 +41,11 @@ void ymadpcm_a_registers::save(device_t &device) void ymadpcm_a_registers::reset() { std::fill_n(&m_regdata[0], REGISTERS, 0); + + // initialize the pans to on by default, and max instrument volume; + // some neogeo homebrews (for example ffeast) rely on this + m_regdata[0x08] = m_regdata[0x09] = m_regdata[0x0a] = + m_regdata[0x0b] = m_regdata[0x0c] = m_regdata[0x0d] = 0xdf; }