diff options
author | 2019-09-09 19:38:37 -0400 | |
---|---|---|
committer | 2019-09-09 19:39:29 -0400 | |
commit | ea6c34dbbc358c898b34384abb3dae9c49c037b0 (patch) | |
tree | 9f731f8ca03dcb5b5cb63cc3f34f1d753e886c37 /src | |
parent | 5749b1ded1b123ca075f94767f7a4aff1462a31c (diff) |
ay8910: Don't play fast and loose with register initialization; some builds warn about that (nw)
Diffstat (limited to 'src')
-rw-r--r-- | src/devices/sound/ay8910.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/sound/ay8910.cpp b/src/devices/sound/ay8910.cpp index 0372541d47d..e3ee55dde50 100644 --- a/src/devices/sound/ay8910.cpp +++ b/src/devices/sound/ay8910.cpp @@ -1633,11 +1633,11 @@ ay8910_device::ay8910_device(const machine_config &mconfig, device_type type, co m_count_noise(0), m_rng(0), m_mode(0), - m_env_step_mask((!(m_feature & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? 0x0f : 0x1f), - m_step( (!(m_feature & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? 32 : 16), - m_zero_is_off( (!(m_feature & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? 1 : 0), - m_par( (!(m_feature & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? &ay8910_param : &ym2149_param), - m_par_env( (!(m_feature & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? &ay8910_param : &ym2149_param_env), + m_env_step_mask((!(config & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? 0x0f : 0x1f), + m_step( (!(config & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? 32 : 16), + m_zero_is_off( (!(config & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? 1 : 0), + m_par( (!(config & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? &ay8910_param : &ym2149_param), + m_par_env( (!(config & PSG_HAS_EXPANDED_MODE)) && (psg_type == PSG_TYPE_AY) ? &ay8910_param : &ym2149_param_env), m_flags(AY8910_LEGACY_OUTPUT), m_feature(config), m_port_a_read_cb(*this), |