From 2a85c52239147f70c70ce06f082ceff26fa9fed9 Mon Sep 17 00:00:00 2001 From: Sergio G Date: Fri, 30 Jun 2023 20:18:05 +0200 Subject: [PATCH] misc/cave.cpp: Corrected YMZ280B clock frequency for Gaia Crusaders and Thunder Heroes. (#11389) --- src/mame/misc/cave.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mame/misc/cave.cpp b/src/mame/misc/cave.cpp index 170dabef564..b04d042fd68 100644 --- a/src/mame/misc/cave.cpp +++ b/src/mame/misc/cave.cpp @@ -2230,7 +2230,12 @@ void cave_state::gaia(machine_config &config) MCFG_VIDEO_START_OVERRIDE(cave_state,spr_8bpp) /* sound hardware */ - add_ymz(config); + SPEAKER(config, "mono").front_center(); + + // Unlike other games also using ymz, gaia (and theroes) has 16MHz clock for it + ymz280b_device &ymz(YMZ280B(config, "ymz", 16_MHz_XTAL)); + ymz.irq_handler().set(FUNC(cave_state::sound_irq_gen)); + ymz.add_route(ALL_OUTPUTS, "mono", 1.0); }