diff options
Diffstat (limited to 'src/mame/audio/bzone.cpp')
-rw-r--r-- | src/mame/audio/bzone.cpp | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/mame/audio/bzone.cpp b/src/mame/audio/bzone.cpp index 5698b787737..8172d686685 100644 --- a/src/mame/audio/bzone.cpp +++ b/src/mame/audio/bzone.cpp @@ -396,17 +396,14 @@ WRITE8_MEMBER(bzone_state::bzone_sounds_w) machine().sound().system_enable(data & 0x20); } - -MACHINE_CONFIG_START(bzone_state::bzone_audio) - +void bzone_state::bzone_audio(machine_config &config) +{ SPEAKER(config, "mono").front_center(); - MCFG_DEVICE_ADD("pokey", POKEY, BZONE_MASTER_CLOCK / 8) - MCFG_POKEY_ALLPOT_R_CB(IOPORT("IN3")) - MCFG_POKEY_OUTPUT_RC(RES_K(10), CAP_U(0.015), 5.0) - MCFG_SOUND_ROUTE(0, "discrete", 1.0, 0) + pokey_device &pokey(POKEY(config, "pokey", BZONE_MASTER_CLOCK / 8)); + pokey.allpot_r().set_ioport("IN3"); + pokey.set_output_rc(RES_K(10), CAP_U(0.015), 5.0); + pokey.add_route(0, "discrete", 1.0, 0); - MCFG_DEVICE_ADD("discrete", DISCRETE, bzone_discrete) - - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) -MACHINE_CONFIG_END + DISCRETE(config, "discrete", bzone_discrete).add_route(ALL_OUTPUTS, "mono", 1.0); +} |