summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/albazg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/albazg.cpp')
-rw-r--r--src/mame/drivers/albazg.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mame/drivers/albazg.cpp b/src/mame/drivers/albazg.cpp
index c3aed14f95a..2a49b54963e 100644
--- a/src/mame/drivers/albazg.cpp
+++ b/src/mame/drivers/albazg.cpp
@@ -397,11 +397,11 @@ MACHINE_CONFIG_START(albazg_state::yumefuda)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("aysnd", AY8910, MASTER_CLOCK/16) /* guessed to use the same xtal as the crtc */
- MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1"))
- MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2"))
- MCFG_AY8910_PORT_A_WRITE_CB(WRITE8(*this, albazg_state, yumefuda_output_w))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
+ ay8910_device &aysnd(AY8910(config, "aysnd", MASTER_CLOCK/16)); /* guessed to use the same xtal as the crtc */
+ aysnd.port_a_read_callback().set_ioport("DSW1");
+ aysnd.port_b_read_callback().set_ioport("DSW2");
+ aysnd.port_a_write_callback().set(FUNC(albazg_state::yumefuda_output_w));
+ aysnd.add_route(ALL_OUTPUTS, "mono", 0.50);
MACHINE_CONFIG_END
/***************************************************************************************/