diff options
Diffstat (limited to 'src/mame/drivers/bking.cpp')
-rw-r--r-- | src/mame/drivers/bking.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/mame/drivers/bking.cpp b/src/mame/drivers/bking.cpp index bf5105b9e51..395a02f3023 100644 --- a/src/mame/drivers/bking.cpp +++ b/src/mame/drivers/bking.cpp @@ -424,19 +424,18 @@ MACHINE_CONFIG_START(bking_state::bking) /* sound hardware */ SPEAKER(config, "speaker").front_center(); - MCFG_GENERIC_LATCH_8_ADD("soundlatch") - MCFG_GENERIC_LATCH_DATA_PENDING_CB(WRITELINE("soundnmi", input_merger_device, in_w<0>)) + GENERIC_LATCH_8(config, m_soundlatch); + m_soundlatch->data_pending_callback().set("soundnmi", FUNC(input_merger_device::in_w<0>)); MCFG_INPUT_MERGER_ALL_HIGH("soundnmi") MCFG_INPUT_MERGER_OUTPUT_HANDLER(INPUTLINE("audiocpu", INPUT_LINE_NMI)) - MCFG_DEVICE_ADD("ay1", AY8910, XTAL(6'000'000)/4) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) + AY8910(config, "ay1", XTAL(6'000'000)/4).add_route(ALL_OUTPUTS, "speaker", 0.25); - MCFG_DEVICE_ADD("ay2", AY8910, XTAL(6'000'000)/4) - MCFG_AY8910_PORT_A_WRITE_CB(WRITE8("dac", dac_byte_interface, data_w)) - MCFG_AY8910_PORT_B_WRITE_CB(WRITE8(*this, bking_state, port_b_w)) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) + ay8910_device &ay2(AY8910(config, "ay2", XTAL(6'000'000)/4)); + ay2.port_b_write_callback().set("dac", FUNC(dac_byte_interface::data_w)); + ay2.port_b_write_callback().set(FUNC(bking_state::port_b_w)); + ay2.add_route(ALL_OUTPUTS, "speaker", 0.25); MCFG_DEVICE_ADD("dac", DAC_8BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25) // unknown DAC MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0) |