summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/taxidriv.cpp
diff options
context:
space:
mode:
authorGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2018-11-14 18:56:50 +0100
committerGravatarGravatar Ivan Vangelista <mesgnet@yahoo.it>2018-11-14 18:56:50 +0100
commitcc59e2123eaa5e6c5c71317d28b55f425bb6a333 (patch) (github)
tree5dc5670b8695c59255c663d08d557dd3ea2bffcc /src/mame/drivers/taxidriv.cpp
parent9605e76c1ce1b76e1d344d5531fb823d1cd5ef9a (diff)
downloadmame-cc59e2123eaa5e6c5c71317d28b55f425bb6a333.tar.bz2
mame-cc59e2123eaa5e6c5c71317d28b55f425bb6a333.zip
ay8910: finished MCFG macros removal (nw)
Diffstat (limited to 'src/mame/drivers/taxidriv.cpp')
-rw-r--r--src/mame/drivers/taxidriv.cpp16
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