diff options
Diffstat (limited to 'src/mame/drivers/pitnrun.cpp')
-rw-r--r-- | src/mame/drivers/pitnrun.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/pitnrun.cpp b/src/mame/drivers/pitnrun.cpp index 4635cff525e..37bfac42f3f 100644 --- a/src/mame/drivers/pitnrun.cpp +++ b/src/mame/drivers/pitnrun.cpp @@ -316,17 +316,17 @@ MACHINE_CONFIG_START(pitnrun_state::pitnrun) /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_GENERIC_LATCH_8_ADD("soundlatch") + GENERIC_LATCH_8(config, "soundlatch"); - MCFG_DEVICE_ADD("ay1", AY8910, XTAL(18'432'000)/12) /* verified on pcb */ - MCFG_AY8910_PORT_A_READ_CB(READ8("soundlatch", generic_latch_8_device, read)) - MCFG_AY8910_PORT_B_READ_CB(READ8("soundlatch", generic_latch_8_device, read)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) + ay8910_device &ay1(AY8910(config, "ay1", XTAL(18'432'000)/12)); /* verified on pcb */ + ay1.port_a_read_callback().set("soundlatch", FUNC(generic_latch_8_device::read)); + ay1.port_b_read_callback().set("soundlatch", FUNC(generic_latch_8_device::read)); + ay1.add_route(ALL_OUTPUTS, "mono", 0.50); - MCFG_DEVICE_ADD("ay2", AY8910, XTAL(18'432'000)/12) /* verified on pcb */ - MCFG_AY8910_PORT_A_READ_CB(READ8("soundlatch", generic_latch_8_device, read)) - MCFG_AY8910_PORT_B_READ_CB(READ8("soundlatch", generic_latch_8_device, read)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50) + ay8910_device &ay2(AY8910(config, "ay2", XTAL(18'432'000)/12)); /* verified on pcb */ + ay2.port_a_read_callback().set("soundlatch", FUNC(generic_latch_8_device::read)); + ay2.port_b_read_callback().set("soundlatch", FUNC(generic_latch_8_device::read)); + ay2.add_route(ALL_OUTPUTS, "mono", 0.50); MCFG_DEVICE_ADD("noiselatch", LS259, 0) // 1J MACHINE_CONFIG_END |