summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/flstory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/flstory.cpp')
-rw-r--r--src/mame/drivers/flstory.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/mame/drivers/flstory.cpp b/src/mame/drivers/flstory.cpp
index 8eb99d49fe3..d9a5ba03f1b 100644
--- a/src/mame/drivers/flstory.cpp
+++ b/src/mame/drivers/flstory.cpp
@@ -780,10 +780,10 @@ MACHINE_CONFIG_START(flstory_state::flstory)
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
MCFG_TA7630_ADD("ta7630")
- MCFG_DEVICE_ADD("aysnd", YM2149, XTAL(8'000'000)/4) /* verified on pcb */
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, flstory_state, sound_control_2_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, flstory_state, sound_control_3_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1)
+ YM2149(config, m_ay, XTAL(8'000'000)/4); /* verified on pcb */
+ m_ay->port_a_write_callback().set(FUNC(flstory_state::sound_control_2_w));
+ m_ay->port_b_write_callback().set(FUNC(flstory_state::sound_control_3_w));
+ m_ay->add_route(ALL_OUTPUTS, "speaker", 0.1);
MCFG_DEVICE_ADD("msm", MSM5232, XTAL(8'000'000)/4) /* verified on pcb */
MCFG_MSM5232_SET_CAPACITORS(1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6) /* 1.0 uF capacitors (verified on real PCB) */
@@ -849,10 +849,10 @@ MACHINE_CONFIG_START(flstory_state::onna34ro)
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
MCFG_TA7630_ADD("ta7630")
- MCFG_DEVICE_ADD("aysnd", YM2149, XTAL(8'000'000)/4)
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, flstory_state, sound_control_2_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, flstory_state, sound_control_3_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.1)
+ YM2149(config, m_ay, XTAL(8'000'000)/4);
+ m_ay->port_a_write_callback().set(FUNC(flstory_state::sound_control_2_w));
+ m_ay->port_b_write_callback().set(FUNC(flstory_state::sound_control_3_w));
+ m_ay->add_route(ALL_OUTPUTS, "speaker", 0.1);
MCFG_DEVICE_ADD("msm", MSM5232, XTAL(8'000'000)/4)
MCFG_MSM5232_SET_CAPACITORS(1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6) /* 1.0 uF capacitors (verified on real PCB) */
@@ -929,10 +929,10 @@ MACHINE_CONFIG_START(flstory_state::victnine)
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
MCFG_TA7630_ADD("ta7630")
- MCFG_DEVICE_ADD("aysnd", YM2149, XTAL(8'000'000)/4)
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, flstory_state, sound_control_2_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, flstory_state, sound_control_3_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
+ YM2149(config, m_ay, XTAL(8'000'000)/4);
+ m_ay->port_a_write_callback().set(FUNC(flstory_state::sound_control_2_w));
+ m_ay->port_b_write_callback().set(FUNC(flstory_state::sound_control_3_w));
+ m_ay->add_route(ALL_OUTPUTS, "speaker", 0.5);
MCFG_DEVICE_ADD("msm", MSM5232, XTAL(8'000'000)/4)
MCFG_MSM5232_SET_CAPACITORS(1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6) /* 1.0 uF capacitors (verified on real PCB) */
@@ -1002,10 +1002,10 @@ MACHINE_CONFIG_START(flstory_state::rumba)
MCFG_GENERIC_LATCH_8_ADD("soundlatch2")
MCFG_TA7630_ADD("ta7630")
- MCFG_DEVICE_ADD("aysnd", YM2149, XTAL(8'000'000)/4) /* verified on pcb */
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, flstory_state, sound_control_2_w))
- MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, flstory_state, sound_control_3_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.5)
+ YM2149(config, m_ay, XTAL(8'000'000)/4); /* verified on pcb */
+ m_ay->port_a_write_callback().set(FUNC(flstory_state::sound_control_2_w));
+ m_ay->port_b_write_callback().set(FUNC(flstory_state::sound_control_3_w));
+ m_ay->add_route(ALL_OUTPUTS, "speaker", 0.5);
MCFG_DEVICE_ADD("msm", MSM5232, XTAL(8'000'000)/4) /* verified on pcb */
MCFG_MSM5232_SET_CAPACITORS(1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6, 1.0e-6) /* 1.0 uF capacitors (verified on real PCB) */