diff options
Diffstat (limited to 'src/mame/drivers/stuntair.cpp')
-rw-r--r-- | src/mame/drivers/stuntair.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/mame/drivers/stuntair.cpp b/src/mame/drivers/stuntair.cpp index e054617b546..4df4d4c6f79 100644 --- a/src/mame/drivers/stuntair.cpp +++ b/src/mame/drivers/stuntair.cpp @@ -559,15 +559,14 @@ MACHINE_CONFIG_START(stuntair_state::stuntair) /* sound hardware */ SPEAKER(config, "mono").front_center(); // stereo? - MCFG_GENERIC_LATCH_8_ADD("soundlatch") + GENERIC_LATCH_8(config, m_soundlatch); - MCFG_DEVICE_ADD("ay1", AY8910, XTAL(18'432'000)/12) - MCFG_AY8910_PORT_A_READ_CB(READ8("soundlatch", generic_latch_8_device, read)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, stuntair_state, ay8910_portb_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) + ay8910_device &ay1(AY8910(config, "ay1", XTAL(18'432'000)/12)); + ay1.port_a_read_callback().set(m_soundlatch, FUNC(generic_latch_8_device::read)); + ay1.port_b_write_callback().set(FUNC(stuntair_state::ay8910_portb_w)); + ay1.add_route(ALL_OUTPUTS, "mono", 0.50); - MCFG_DEVICE_ADD("ay2", AY8910, XTAL(18'432'000)/12) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) + AY8910(config, "ay2", XTAL(18'432'000)/12).add_route(ALL_OUTPUTS, "mono", 0.50); MACHINE_CONFIG_END |