summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/rmhaihai.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/rmhaihai.cpp')
-rw-r--r--src/mame/drivers/rmhaihai.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/rmhaihai.cpp b/src/mame/drivers/rmhaihai.cpp
index f7e5716c93e..6f6cf05a12c 100644
--- a/src/mame/drivers/rmhaihai.cpp
+++ b/src/mame/drivers/rmhaihai.cpp
@@ -530,10 +530,10 @@ MACHINE_CONFIG_START(rmhaihai_state::rmhaihai)
/* sound hardware */
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("aysnd", AY8910, 20000000/16)
- MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW2"))
- MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW1"))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.30)
+ ay8910_device &aysnd(AY8910(config, "aysnd", 20000000/16));
+ aysnd.port_a_read_callback().set_ioport("DSW2");
+ aysnd.port_b_read_callback().set_ioport("DSW1");
+ aysnd.add_route(ALL_OUTPUTS, "mono", 0.30);
MCFG_DEVICE_ADD("msm", MSM5205, 500000)
MCFG_MSM5205_PRESCALER_SELECTOR(SEX_4B)