diff options
author | Vas Crabb <vas@vastheman.com> | 2018-05-09 19:26:44 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-05-09 19:26:44 +1000 |
commit | 6c11b3ce0131be3b14edf5ef93fa9cb2380ae45b (patch) | |
tree | 07181df4c25bf034f38aa13cf19c4ee2995d3e7f /src/emu | |
parent | be68e91d80f242ca173ba8009dd8c68dbc4b7b29 (diff) |
dsp16: fix condition mask in disassembler (nw)
(nw) remove more MCFG macros and make speaker config more explicit
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/speaker.cpp | 10 | ||||
-rw-r--r-- | src/emu/speaker.h | 23 |
2 files changed, 3 insertions, 30 deletions
diff --git a/src/emu/speaker.cpp b/src/emu/speaker.cpp index 177bfa0c590..de2ad1127a0 100644 --- a/src/emu/speaker.cpp +++ b/src/emu/speaker.cpp @@ -14,16 +14,6 @@ //************************************************************************** -// DEBUGGING -//************************************************************************** - -#define VERBOSE (0) - -#define VPRINTF(x) do { if (VERBOSE) osd_printf_debug x; } while (0) - - - -//************************************************************************** // GLOBAL VARIABLES //************************************************************************** diff --git a/src/emu/speaker.h b/src/emu/speaker.h index 8d41342e01f..286e837ce79 100644 --- a/src/emu/speaker.h +++ b/src/emu/speaker.h @@ -23,23 +23,6 @@ DECLARE_DEVICE_TYPE(SPEAKER, speaker_device) //************************************************************************** -// DEVICE CONFIGURATION MACROS -//************************************************************************** - -// add/remove speakers -#define MCFG_SPEAKER_ADD(_tag, _x, _y, _z) \ - MCFG_DEVICE_ADD(_tag, SPEAKER, _x, _y, _z) - -#define MCFG_SPEAKER_STANDARD_MONO(_tag) \ - MCFG_SPEAKER_ADD(_tag, 0.0, 0.0, 1.0) - -#define MCFG_SPEAKER_STANDARD_STEREO(_tagl, _tagr) \ - MCFG_SPEAKER_ADD(_tagl, -0.2, 0.0, 1.0) \ - MCFG_SPEAKER_ADD(_tagr, 0.2, 0.0, 1.0) - - - -//************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -59,9 +42,9 @@ public: // inline configuration helpers speaker_device &set_position(double x, double y, double z) { m_x = x; m_y = y; m_z = z; return *this; } - speaker_device &standard_mono() { set_position(0.0, 0.0, 1.0); return *this; } - speaker_device &standard_left() { set_position(-0.2, 0.0, 1.0); return *this; } - speaker_device &standard_right() { set_position(0.2, 0.0, 1.0); return *this; } + 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; } // internally for use by the sound system void mix(s32 *leftmix, s32 *rightmix, int &samples_this_update, bool suppress); |