summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/hitpoker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/hitpoker.cpp')
-rw-r--r--src/mame/drivers/hitpoker.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/hitpoker.cpp b/src/mame/drivers/hitpoker.cpp
index 7c63dae816e..1328d2429e5 100644
--- a/src/mame/drivers/hitpoker.cpp
+++ b/src/mame/drivers/hitpoker.cpp
@@ -489,10 +489,10 @@ MACHINE_CONFIG_START(hitpoker_state::hitpoker)
SPEAKER(config, "mono").front_center();
- MCFG_DEVICE_ADD("aysnd", YM2149, 1500000)
- MCFG_AY8910_PORT_A_READ_CB(IOPORT("DSW1"))
- MCFG_AY8910_PORT_B_READ_CB(IOPORT("DSW2"))
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.50)
+ ym2149_device &aysnd(YM2149(config, "aysnd", 1500000));
+ aysnd.port_a_read_callback().set_ioport("DSW1");
+ aysnd.port_b_read_callback().set_ioport("DSW2");
+ aysnd.add_route(ALL_OUTPUTS, "mono", 0.50);
MACHINE_CONFIG_END
void hitpoker_state::init_hitpoker()