From 9be8bb6ad29f2216c49db087231cf225a28b8349 Mon Sep 17 00:00:00 2001 From: hap Date: Fri, 30 Jun 2023 20:48:57 +0200 Subject: cave.cpp: simplify prev commit --- src/mame/misc/cave.cpp | 6 ++---- src/mame/shared/exidysound.cpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/mame/misc/cave.cpp b/src/mame/misc/cave.cpp index b04d042fd68..da6279607dd 100644 --- a/src/mame/misc/cave.cpp +++ b/src/mame/misc/cave.cpp @@ -2230,12 +2230,10 @@ void cave_state::gaia(machine_config &config) MCFG_VIDEO_START_OVERRIDE(cave_state,spr_8bpp) /* sound hardware */ - SPEAKER(config, "mono").front_center(); + add_ymz(config); // 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); + subdevice("ymz")->set_clock(16_MHz_XTAL); } diff --git a/src/mame/shared/exidysound.cpp b/src/mame/shared/exidysound.cpp index 76802cad191..c1cf210a4c4 100644 --- a/src/mame/shared/exidysound.cpp +++ b/src/mame/shared/exidysound.cpp @@ -5,7 +5,7 @@ Exidy 6502 hardware TODO: - - use ptm6840_device and pit8253_device + - use ptm6840_device and pit8253_device, maybe mos6532_new_device too *************************************************************************/ -- cgit v1.2.3