diff options
Diffstat (limited to 'src/mame/drivers/raiden.cpp')
-rw-r--r-- | src/mame/drivers/raiden.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/mame/drivers/raiden.cpp b/src/mame/drivers/raiden.cpp index cc649d603df..d20fe51f384 100644 --- a/src/mame/drivers/raiden.cpp +++ b/src/mame/drivers/raiden.cpp @@ -376,11 +376,12 @@ MACHINE_CONFIG_START(raiden_state::raiden) MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(12'000'000)/12, okim6295_device::PIN7_HIGH) // frequency and pin 7 verified MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) - MCFG_DEVICE_ADD("seibu_sound", SEIBU_SOUND, 0) - MCFG_SEIBU_SOUND_CPU("audiocpu") - MCFG_SEIBU_SOUND_ROMBANK("seibu_bank1") - MCFG_SEIBU_SOUND_YM_READ_CB(READ8("ymsnd", ym3812_device, read)) - MCFG_SEIBU_SOUND_YM_WRITE_CB(WRITE8("ymsnd", ym3812_device, write)) + SEIBU_SOUND(config, m_seibu_sound, 0); + m_seibu_sound->int_callback().set_inputline("audiocpu", 0); + m_seibu_sound->set_rom_tag("audiocpu"); + m_seibu_sound->set_rombank_tag("seibu_bank1"); + m_seibu_sound->ym_read_callback().set("ymsnd", FUNC(ym3812_device::read)); + m_seibu_sound->ym_write_callback().set("ymsnd", FUNC(ym3812_device::write)); MACHINE_CONFIG_END MACHINE_CONFIG_START(raiden_state::raidene) @@ -389,8 +390,8 @@ MACHINE_CONFIG_START(raiden_state::raidene) MCFG_DEVICE_PROGRAM_MAP(raiden_sound_map) MCFG_DEVICE_OPCODES_MAP(raiden_sound_decrypted_opcodes_map) - MCFG_DEVICE_ADD("sei80bu", SEI80BU, 0) - MCFG_DEVICE_PROGRAM_MAP(sei80bu_encrypted_full_map) + sei80bu_device &sei80bu(SEI80BU(config, "sei80bu", 0)); + sei80bu.set_addrmap(AS_PROGRAM, &raiden_state::sei80bu_encrypted_full_map); MACHINE_CONFIG_END MACHINE_CONFIG_START(raiden_state::raidenu) |