diff options
author | 2018-10-05 13:28:31 +0200 | |
---|---|---|
committer | 2018-10-05 13:28:31 +0200 | |
commit | 4d2407128c645029975d4082c8c9bddab081bfb3 (patch) | |
tree | a839a44135773b7a674b92a37f64292f6c8988b3 | |
parent | 62b6a497687135fc9d33affa867080a088623b7f (diff) |
speaker: added rear_center (nw)
-rw-r--r-- | src/emu/speaker.h | 2 | ||||
-rw-r--r-- | src/mame/drivers/namcos22.cpp | 2 | ||||
-rw-r--r-- | src/mame/drivers/taito_z.cpp | 18 |
3 files changed, 12 insertions, 10 deletions
diff --git a/src/emu/speaker.h b/src/emu/speaker.h index ce4034ade0f..47ad0f6b7d2 100644 --- a/src/emu/speaker.h +++ b/src/emu/speaker.h @@ -19,6 +19,7 @@ magnitude), and completely ignores the y and z coordinates. ***************************************************************************/ + #ifndef MAME_EMU_SPEAKER_H #define MAME_EMU_SPEAKER_H @@ -57,6 +58,7 @@ public: speaker_device &front_center() { set_position(0.0, 0.0, 1.0); return *this; } speaker_device &front_left() { set_position(-0.2, 0.0, 1.0); return *this; } speaker_device &front_right() { set_position(0.2, 0.0, 1.0); return *this; } + speaker_device &rear_center() { set_position(0.0, 0.0, -0.5); return *this; } speaker_device &rear_left() { set_position(-0.2, 0.0, -0.5); return *this; } speaker_device &rear_right() { set_position(0.2, 0.0, -0.5); return *this; } speaker_device &subwoofer() { set_position(0.0, 0.0, 0.0); return *this; } diff --git a/src/mame/drivers/namcos22.cpp b/src/mame/drivers/namcos22.cpp index f16de058df4..55fb1d01faa 100644 --- a/src/mame/drivers/namcos22.cpp +++ b/src/mame/drivers/namcos22.cpp @@ -3905,7 +3905,7 @@ MACHINE_CONFIG_START(namcos22_state::tokyowar) namcos22s(config); SPEAKER(config, "vibration").subwoofer(); - SPEAKER(config, "seat", 0.0, 0.0, -0.5); + SPEAKER(config, "seat").rear_center(); MCFG_DEVICE_MODIFY("c352") MCFG_SOUND_ROUTE(2, "vibration", 0.50) // to "bass shaker" diff --git a/src/mame/drivers/taito_z.cpp b/src/mame/drivers/taito_z.cpp index fedcbba4d64..28af9ac056d 100644 --- a/src/mame/drivers/taito_z.cpp +++ b/src/mame/drivers/taito_z.cpp @@ -3230,9 +3230,9 @@ MACHINE_CONFIG_START(taitoz_state::contcirc) MCFG_DEVICE_ADD("tc0110pcr", TC0110PCR, 0, "palette") /* sound hardware */ - SPEAKER(config, "front", 0.0, 0.0, 1.0); - SPEAKER(config, "rear", 0.0, 0.0, -0.5); - SPEAKER(config, "subwoofer", 0.0, 0.0, 1.0); + SPEAKER(config, "front").front_center(); + SPEAKER(config, "rear").rear_center(); + SPEAKER(config, "subwoofer").subwoofer(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3304,9 +3304,9 @@ MACHINE_CONFIG_START(taitoz_state::chasehq) MCFG_DEVICE_ADD("tc0110pcr", TC0110PCR, 0, "palette") /* sound hardware */ - SPEAKER(config, "front", 0.0, 0.0, 1.0); - SPEAKER(config, "rear", 0.0, 0.0, -0.5); - SPEAKER(config, "subwoofer", 0.0, 0.0, 0.5); + SPEAKER(config, "front").front_center(); + SPEAKER(config, "rear").rear_center(); + SPEAKER(config, "subwoofer").subwoofer(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) @@ -3620,9 +3620,9 @@ MACHINE_CONFIG_START(taitoz_state::nightstr) MCFG_DEVICE_ADD("tc0110pcr", TC0110PCR, 0, "palette") /* sound hardware */ - SPEAKER(config, "front", 0.0, 0.0, 1.0); - SPEAKER(config, "rear", 0.0, 0.0, -0.5); - SPEAKER(config, "subwoofer", 0.0, 0.0, 0.5); + SPEAKER(config, "front").front_center(); + SPEAKER(config, "rear").rear_center(); + SPEAKER(config, "subwoofer").subwoofer(); MCFG_DEVICE_ADD("ymsnd", YM2610, 16000000/2) MCFG_YM2610_IRQ_HANDLER(INPUTLINE("audiocpu", 0)) |