diff options
Diffstat (limited to 'src/mame/drivers/warriorb.cpp')
-rw-r--r-- | src/mame/drivers/warriorb.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/src/mame/drivers/warriorb.cpp b/src/mame/drivers/warriorb.cpp index d1492ff238b..76d6967104d 100644 --- a/src/mame/drivers/warriorb.cpp +++ b/src/mame/drivers/warriorb.cpp @@ -509,14 +509,10 @@ MACHINE_CONFIG_START(warriorb_state::darius2d) MCFG_SOUND_ROUTE(2, "2610.2.l", 1.0) MCFG_SOUND_ROUTE(2, "2610.2.r", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.1.l", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.1.r", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.2.l", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.2.r", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) + FILTER_VOLUME(config, "2610.1.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0); + FILTER_VOLUME(config, "2610.1.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0); + FILTER_VOLUME(config, "2610.2.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0); + FILTER_VOLUME(config, "2610.2.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0); MCFG_DEVICE_ADD("tc0140syt", TC0140SYT, 0) MCFG_TC0140SYT_MASTER_CPU("maincpu") @@ -599,14 +595,10 @@ MACHINE_CONFIG_START(warriorb_state::warriorb) MCFG_SOUND_ROUTE(2, "2610.2.l", 1.0) MCFG_SOUND_ROUTE(2, "2610.2.r", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.1.l", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.1.r", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.2.l", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "lspeaker", 1.0) - MCFG_FILTER_VOLUME_ADD("2610.2.r", 0) - MCFG_SOUND_ROUTE(ALL_OUTPUTS, "rspeaker", 1.0) + FILTER_VOLUME(config, "2610.1.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0); + FILTER_VOLUME(config, "2610.1.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0); + FILTER_VOLUME(config, "2610.2.l").add_route(ALL_OUTPUTS, "lspeaker", 1.0); + FILTER_VOLUME(config, "2610.2.r").add_route(ALL_OUTPUTS, "rspeaker", 1.0); MCFG_DEVICE_ADD("tc0140syt", TC0140SYT, 0) MCFG_TC0140SYT_MASTER_CPU("maincpu") |