From 3f7aa11e2604d9cb7062ae0a461bd067b3055143 Mon Sep 17 00:00:00 2001 From: cam900 Date: Sat, 5 Oct 2019 12:48:41 +0900 Subject: [PATCH] ninjaw.cpp, warriorb.cpp : Accurate psg output position (subwoofer only) (#5709) * ninjaw.cpp, warriorb.cpp : Accurate psg output position (subwoofer only) * ninjaw.cpp, warriorb.cpp : Add notes, Fix output position --- src/mame/drivers/ninjaw.cpp | 8 ++++---- src/mame/drivers/warriorb.cpp | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/mame/drivers/ninjaw.cpp b/src/mame/drivers/ninjaw.cpp index 88341fe35d8..ae243f6cd0f 100644 --- a/src/mame/drivers/ninjaw.cpp +++ b/src/mame/drivers/ninjaw.cpp @@ -783,11 +783,11 @@ void ninjaw_state::ninjaw(machine_config &config) /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); + SPEAKER(config, "subwoofer").seat(); ym2610_device &ymsnd(YM2610(config, "ymsnd", 16000000/2)); ymsnd.irq_handler().set_inputline("audiocpu", 0); - ymsnd.add_route(0, "lspeaker", 0.25); - ymsnd.add_route(0, "rspeaker", 0.25); + ymsnd.add_route(0, "subwoofer", 0.25); ymsnd.add_route(1, "2610.1.l", 1.0); ymsnd.add_route(1, "2610.1.r", 1.0); ymsnd.add_route(2, "2610.2.l", 1.0); @@ -889,11 +889,11 @@ void ninjaw_state::darius2(machine_config &config) /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); + SPEAKER(config, "subwoofer").seat(); ym2610_device &ymsnd(YM2610(config, "ymsnd", 16000000/2)); ymsnd.irq_handler().set_inputline("audiocpu", 0); - ymsnd.add_route(0, "lspeaker", 0.25); - ymsnd.add_route(0, "rspeaker", 0.25); + ymsnd.add_route(0, "subwoofer", 0.25); ymsnd.add_route(1, "2610.1.l", 1.0); ymsnd.add_route(1, "2610.1.r", 1.0); ymsnd.add_route(2, "2610.2.l", 1.0); diff --git a/src/mame/drivers/warriorb.cpp b/src/mame/drivers/warriorb.cpp index 31a24cdc428..ddd0b8d3c12 100644 --- a/src/mame/drivers/warriorb.cpp +++ b/src/mame/drivers/warriorb.cpp @@ -453,11 +453,11 @@ void warriorb_state::darius2d(machine_config &config) /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); + SPEAKER(config, "subwoofer").seat(); ym2610_device &ymsnd(YM2610(config, "ymsnd", 16_MHz_XTAL / 2)); ymsnd.irq_handler().set_inputline("audiocpu", 0); - ymsnd.add_route(0, "lspeaker", 0.25); - ymsnd.add_route(0, "rspeaker", 0.25); + ymsnd.add_route(0, "subwoofer", 0.25); ymsnd.add_route(1, "2610.1.l", 1.0); ymsnd.add_route(1, "2610.1.r", 1.0); ymsnd.add_route(2, "2610.2.l", 1.0); @@ -530,6 +530,7 @@ void warriorb_state::warriorb(machine_config &config) /* sound hardware */ SPEAKER(config, "lspeaker").front_left(); SPEAKER(config, "rspeaker").front_right(); + // subwoofer under seat is exists like other taito multiscreen games? ym2610b_device &ymsnd(YM2610B(config, "ymsnd", 16_MHz_XTAL / 2)); ymsnd.irq_handler().set_inputline("audiocpu", 0);