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/peyper.cpp | |
parent | 9605e76c1ce1b76e1d344d5531fb823d1cd5ef9a (diff) |
ay8910: finished MCFG macros removal (nw)
Diffstat (limited to 'src/mame/drivers/peyper.cpp')
-rw-r--r-- | src/mame/drivers/peyper.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/peyper.cpp b/src/mame/drivers/peyper.cpp index 969c993cce9..c81928a9184 100644 --- a/src/mame/drivers/peyper.cpp +++ b/src/mame/drivers/peyper.cpp @@ -615,14 +615,14 @@ MACHINE_CONFIG_START(peyper_state::peyper) /* Sound */ genpin_audio(config); SPEAKER(config, "ayvol").front_center(); - MCFG_DEVICE_ADD("ay1", AY8910, 2500000) - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, peyper_state, p1a_w)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, peyper_state, p1b_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "ayvol", 1.0) - MCFG_DEVICE_ADD("ay2", AY8910, 2500000) - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, peyper_state, p2a_w)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, peyper_state, p2b_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "ayvol", 1.0) + ay8910_device &ay1(AY8910(config, "ay1", 2500000)); + ay1.port_a_write_callback().set(FUNC(peyper_state::p1a_w)); + ay1.port_b_write_callback().set(FUNC(peyper_state::p1b_w)); + ay1.add_route(ALL_OUTPUTS, "ayvol", 1.0); + ay8910_device &ay2(AY8910(config, "ay2", 2500000)); + ay2.port_a_write_callback().set(FUNC(peyper_state::p2a_w)); + ay2.port_b_write_callback().set(FUNC(peyper_state::p2b_w)); + ay2.add_route(ALL_OUTPUTS, "ayvol", 1.0); /* Devices */ i8279_device &kbdc(I8279(config, "i8279", 2500000)); |