diff options
Diffstat (limited to 'src/devices/bus/nes/konami.cpp')
-rw-r--r-- | src/devices/bus/nes/konami.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/devices/bus/nes/konami.cpp b/src/devices/bus/nes/konami.cpp index cac5670a574..2963336f92e 100644 --- a/src/devices/bus/nes/konami.cpp +++ b/src/devices/bus/nes/konami.cpp @@ -637,16 +637,15 @@ WRITE8_MEMBER(nes_konami_vrc6_device::write_h) // device_add_mconfig - add device configuration //------------------------------------------------- -MACHINE_CONFIG_START(nes_konami_vrc6_device::device_add_mconfig) - +void nes_konami_vrc6_device::device_add_mconfig(machine_config &config) +{ // additional sound hardware SPEAKER(config, "addon").front_center(); // TODO: this is not how VRC6 clock signaling works! // The board uses the CLK pin in reality, not hardcoded NTSC values! - MCFG_DEVICE_ADD("vrc6snd", VRC6, XTAL(21'477'272)/12) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "addon", 0.5) -MACHINE_CONFIG_END + VRC6(config, m_vrc6snd, XTAL(21'477'272)/12).add_route(ALL_OUTPUTS, "addon", 0.5); +} /*------------------------------------------------- @@ -761,13 +760,12 @@ WRITE8_MEMBER(nes_konami_vrc7_device::write_h) // FIXME: we currently emulate this as a base YM2413! -MACHINE_CONFIG_START(nes_konami_vrc7_device::device_add_mconfig) - +void nes_konami_vrc7_device::device_add_mconfig(machine_config &config) +{ // additional sound hardware SPEAKER(config, "addon").front_center(); // TODO: this is not how VRC7 clock signaling works! // The board uses the CLK pin in reality, not hardcoded NTSC values! - MCFG_DEVICE_ADD("ym", YM2413, XTAL(21'477'272)/12) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "addon", 0.5) -MACHINE_CONFIG_END + YM2413(config, m_ym2413, XTAL(21'477'272)/12).add_route(ALL_OUTPUTS, "addon", 0.5); +} |