diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2018-11-14 18:56:50 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2018-11-14 18:56:50 +0100 |
commit | cc59e2123eaa5e6c5c71317d28b55f425bb6a333 (patch) | |
tree | 5dc5670b8695c59255c663d08d557dd3ea2bffcc /src/mame/drivers/taxidriv.cpp | |
parent | 9605e76c1ce1b76e1d344d5531fb823d1cd5ef9a (diff) |
ay8910: finished MCFG macros removal (nw)
Diffstat (limited to 'src/mame/drivers/taxidriv.cpp')
-rw-r--r-- | src/mame/drivers/taxidriv.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/taxidriv.cpp b/src/mame/drivers/taxidriv.cpp index 745e6afebd0..616ac9ecbea 100644 --- a/src/mame/drivers/taxidriv.cpp +++ b/src/mame/drivers/taxidriv.cpp @@ -396,14 +396,14 @@ MACHINE_CONFIG_START(taxidriv_state::taxidriv) /* sound hardware */ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("ay1", AY8910, 1250000) - MCFG_AY8910_PORT_A_READ_CB(READ8(*this, taxidriv_state, p8910_0a_r)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, taxidriv_state, p8910_0b_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) - - MCFG_DEVICE_ADD("ay2", AY8910, 1250000) - MCFG_AY8910_PORT_A_READ_CB(READ8(*this, taxidriv_state, p8910_1a_r)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25) + ay8910_device &ay1(AY8910(config, "ay1", 1250000)); + ay1.port_a_read_callback().set(FUNC(taxidriv_state::p8910_0a_r)); + ay1.port_b_write_callback().set(FUNC(taxidriv_state::p8910_0b_w)); + ay1.add_route(ALL_OUTPUTS, "mono", 0.25); + + ay8910_device &ay2(AY8910(config, "ay2", 1250000)); + ay2.port_a_read_callback().set(FUNC(taxidriv_state::p8910_1a_r)); + ay2.add_route(ALL_OUTPUTS, "mono", 0.25); MACHINE_CONFIG_END |