summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/raiden2.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/drivers/raiden2.cpp')
-rw-r--r--src/mame/drivers/raiden2.cpp22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/mame/drivers/raiden2.cpp b/src/mame/drivers/raiden2.cpp
index 8d0cc366d12..98ce5b9245d 100644
--- a/src/mame/drivers/raiden2.cpp
+++ b/src/mame/drivers/raiden2.cpp
@@ -1469,11 +1469,12 @@ MACHINE_CONFIG_START(raiden2_state::raiden2)
MCFG_DEVICE_ADD("oki2", OKIM6295, XTAL(28'636'363)/28, okim6295_device::PIN7_HIGH)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
- 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", ym2151_device, read))
- MCFG_SEIBU_SOUND_YM_WRITE_CB(WRITE8("ymsnd", ym2151_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(ym2151_device::read));
+ m_seibu_sound->ym_write_callback().set("ymsnd", FUNC(ym2151_device::write));
MACHINE_CONFIG_END
MACHINE_CONFIG_START(raiden2_state::xsedae)
@@ -1542,11 +1543,12 @@ MACHINE_CONFIG_START(raiden2_state::zeroteam)
MCFG_DEVICE_ADD("oki", OKIM6295, XTAL(28'636'363)/28, okim6295_device::PIN7_HIGH)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.40)
- 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
/* ROM LOADING */