summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/pastelg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/pastelg.cpp')
-rw-r--r--src/mame/drivers/pastelg.cpp16
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)