summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/bagman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/bagman.cpp')
-rw-r--r--src/mame/drivers/bagman.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/mame/drivers/bagman.cpp b/src/mame/drivers/bagman.cpp
index 4bd68ad9508..0920327a430 100644
--- a/src/mame/drivers/bagman.cpp
+++ b/src/mame/drivers/bagman.cpp
@@ -549,14 +549,13 @@ MACHINE_CONFIG_START(bagman_state::pickin)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("aysnd", AY8910, 1500000)
- MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1"))
- MCFG_AY8910_PORT_B_READ_CB(IOPORT("P2"))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
+ ay8910_device &aysnd(AY8910(config, "aysnd", 1500000));
+ aysnd.port_a_read_callback().set_ioport("P1");
+ aysnd.port_b_read_callback().set_ioport("P2");
+ aysnd.add_route(ALL_OUTPUTS, "mono", 0.40);
/* maybe */
- MCFG_DEVICE_ADD("ay2", AY8910, 1500000)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
+ AY8910(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "mono", 0.40);
MACHINE_CONFIG_END
/*
@@ -609,13 +608,12 @@ MACHINE_CONFIG_START(bagman_state::botanic)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("aysnd", AY8910, 1500000)
- MCFG_AY8910_PORT_A_READ_CB(IOPORT("P1"))
- MCFG_AY8910_PORT_B_READ_CB(IOPORT("P2"))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
+ ay8910_device &aysnd(AY8910(config, "aysnd", 1500000));
+ aysnd.port_a_read_callback().set_ioport("P1");
+ aysnd.port_b_read_callback().set_ioport("P2");
+ aysnd.add_route(ALL_OUTPUTS, "mono", 0.40);
- MCFG_DEVICE_ADD("ay2", AY8910, 1500000)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
+ AY8910(config, "ay2", 1500000).add_route(ALL_OUTPUTS, "mono", 0.40);
MACHINE_CONFIG_END