diff options
author | Ivan Vangelista <mesgnet@yahoo.it> | 2018-11-12 21:36:22 +0100 |
---|---|---|
committer | Ivan Vangelista <mesgnet@yahoo.it> | 2018-11-12 21:36:22 +0100 |
commit | 5b59f07b1b72576e611fba43e0c63b49553a9a66 (patch) | |
tree | e0c3c9d05a844114b9171618399e239a27a43837 /src/mame/drivers/pastelg.cpp | |
parent | 86ccb014b15353eb0d4e845b3aa015828d095dd3 (diff) |
ay8910: some more work on MCFG macros removal (nw)
Diffstat (limited to 'src/mame/drivers/pastelg.cpp')
-rw-r--r-- | src/mame/drivers/pastelg.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/drivers/pastelg.cpp b/src/mame/drivers/pastelg.cpp index 1f93be1a6d5..82625ffa55f 100644 --- a/src/mame/drivers/pastelg.cpp +++ b/src/mame/drivers/pastelg.cpp @@ -425,10 +425,10 @@ MACHINE_CONFIG_START(pastelg_state::pastelg) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_DEVICE_ADD("aysnd", AY8910, 1250000) - MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWB")) - MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSWA")) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.35) + ay8910_device &aysnd(AY8910(config, "aysnd", 1250000)); + aysnd.port_a_read_callback().set_ioport("DSWA"); + aysnd.port_b_read_callback().set_ioport("DSWB"); + aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) @@ -484,10 +484,10 @@ MACHINE_CONFIG_START(pastelg_state::threeds) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_DEVICE_ADD("aysnd", AY8910, 1250000) - MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSWB")) - MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSWA")) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.35) + ay8910_device &aysnd(AY8910(config, "aysnd", 1250000)); + aysnd.port_a_read_callback().set_ioport("DSWB"); + aysnd.port_b_read_callback().set_ioport("DSWA"); + aysnd.add_route(ALL_OUTPUTS, "speaker", 0.35); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) |