summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/xain.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/xain.cpp')
-rw-r--r--src/mame/drivers/xain.cpp31
1 files changed, 15 insertions, 16 deletions
diff --git a/src/mame/drivers/xain.cpp b/src/mame/drivers/xain.cpp
index b7daa797d0f..e8223e87616 100644
--- a/src/mame/drivers/xain.cpp
+++ b/src/mame/drivers/xain.cpp
@@ -484,7 +484,7 @@ MACHINE_CONFIG_START(xain_state::xsleena)
MCFG_DEVICE_ADD(m_audiocpu, MC6809, PIXEL_CLOCK) // 68A09
MCFG_DEVICE_PROGRAM_MAP(sound_map)
- MCFG_DEVICE_ADD(m_mcu, TAITO68705_MCU, MCU_CLOCK)
+ TAITO68705_MCU(config, m_mcu, MCU_CLOCK);
MCFG_QUANTUM_PERFECT_CPU("maincpu")
@@ -501,21 +501,20 @@ MACHINE_CONFIG_START(xain_state::xsleena)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_GENERIC_LATCH_8_ADD(m_soundlatch)
- MCFG_GENERIC_LATCH_DATA_PENDING_CB(INPUTLINE(m_audiocpu, M6809_IRQ_LINE))
-
- MCFG_DEVICE_ADD("ym1", YM2203, MCU_CLOCK)
- MCFG_YM2203_IRQ_HANDLER(INPUTLINE(m_audiocpu, M6809_FIRQ_LINE))
- MCFG_SOUND_ROUTE(0, "mono", 0.50)
- MCFG_SOUND_ROUTE(1, "mono", 0.50)
- MCFG_SOUND_ROUTE(2, "mono", 0.50)
- MCFG_SOUND_ROUTE(3, "mono", 0.40)
-
- MCFG_DEVICE_ADD("ym2", YM2203, MCU_CLOCK)
- MCFG_SOUND_ROUTE(0, "mono", 0.50)
- MCFG_SOUND_ROUTE(1, "mono", 0.50)
- MCFG_SOUND_ROUTE(2, "mono", 0.50)
- MCFG_SOUND_ROUTE(3, "mono", 0.40)
+ GENERIC_LATCH_8(config, m_soundlatch).data_pending_callback().set_inputline(m_audiocpu, M6809_IRQ_LINE);
+
+ ym2203_device &ym1(YM2203(config, "ym1", MCU_CLOCK));
+ ym1.irq_handler().set_inputline(m_audiocpu, M6809_FIRQ_LINE);
+ ym1.add_route(0, "mono", 0.50);
+ ym1.add_route(1, "mono", 0.50);
+ ym1.add_route(2, "mono", 0.50);
+ ym1.add_route(3, "mono", 0.40);
+
+ ym2203_device &ym2(YM2203(config, "ym2", MCU_CLOCK));
+ ym2.add_route(0, "mono", 0.50);
+ ym2.add_route(1, "mono", 0.50);
+ ym2.add_route(2, "mono", 0.50);
+ ym2.add_route(3, "mono", 0.40);
MACHINE_CONFIG_END