diff options
Diffstat (limited to 'src/mame/drivers/junofrst.cpp')
-rw-r--r-- | src/mame/drivers/junofrst.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/mame/drivers/junofrst.cpp b/src/mame/drivers/junofrst.cpp index 66e2bcabe65..5175bd96ba5 100644 --- a/src/mame/drivers/junofrst.cpp +++ b/src/mame/drivers/junofrst.cpp @@ -443,15 +443,15 @@ MACHINE_CONFIG_START(junofrst_state::junofrst) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_GENERIC_LATCH_8_ADD("soundlatch") - MCFG_GENERIC_LATCH_8_ADD("soundlatch2") - - MCFG_DEVICE_ADD("aysnd", AY8910, 14318000/8) - MCFG_AY8910_PORT_A_READ_CB(READ8(*this, junofrst_state, portA_r)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, junofrst_state, portB_w)) - MCFG_SOUND_ROUTE(0, "filter.0.0", 0.30) - MCFG_SOUND_ROUTE(1, "filter.0.1", 0.30) - MCFG_SOUND_ROUTE(2, "filter.0.2", 0.30) + GENERIC_LATCH_8(config, "soundlatch"); + GENERIC_LATCH_8(config, "soundlatch2"); + + ay8910_device &aysnd(AY8910(config, "aysnd", 14318000/8)); + aysnd.port_a_read_callback().set(FUNC(junofrst_state::portA_r)); + aysnd.port_b_write_callback().set(FUNC(junofrst_state::portB_w)); + aysnd.add_route(0, "filter.0.0", 0.30); + aysnd.add_route(1, "filter.0.1", 0.30); + aysnd.add_route(2, "filter.0.2", 0.30); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // 100K (R56-63)/200K (R64-71) ladder network MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) |