diff options
| author | 2016-01-27 08:12:00 +0100 | |
|---|---|---|
| committer | 2016-01-27 08:12:00 +0100 | |
| commit | b1d6f6d63f8294a3f62d7db6f9eea07da1d93664 (patch) | |
| tree | 10258b6f255e00e7eec2ec30112d6de07015c475 /src/devices/sound/sn76477.cpp | |
| parent | 9425c141de76ef9ee178af80731110e228fa89bb (diff) | |
Cleanups and version bumpmame0170
Diffstat (limited to 'src/devices/sound/sn76477.cpp')
| -rw-r--r-- | src/devices/sound/sn76477.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/devices/sound/sn76477.cpp b/src/devices/sound/sn76477.cpp index f94bf98d1e3..e1fe3f4d3fc 100644 --- a/src/devices/sound/sn76477.cpp +++ b/src/devices/sound/sn76477.cpp @@ -957,17 +957,17 @@ WRITE_LINE_MEMBER(sn76477_device::enable_w) { m_channel->update(); - m_enable = state; + m_enable = state; - /* if falling edge */ - if (!m_enable) - { - /* start the attack phase */ - m_attack_decay_cap_voltage = AD_CAP_VOLTAGE_MIN; + /* if falling edge */ + if (!m_enable) + { + /* start the attack phase */ + m_attack_decay_cap_voltage = AD_CAP_VOLTAGE_MIN; - /* one-shot runs regardless of envelope mode */ - m_one_shot_running_ff = 1; - } + /* one-shot runs regardless of envelope mode */ + m_one_shot_running_ff = 1; + } log_enable_line(); } @@ -1392,16 +1392,16 @@ void sn76477_device::noise_clock_res_w(double data) { m_channel->update(); - if (data == 0) - { - m_noise_clock_ext = 1; - } - else - { - m_noise_clock_ext = 0; + if (data == 0) + { + m_noise_clock_ext = 1; + } + else + { + m_noise_clock_ext = 0; - m_noise_clock_res = data; - } + m_noise_clock_res = data; + } log_noise_gen_freq(); } @@ -1711,7 +1711,7 @@ void sn76477_device::sound_stream_update(sound_stream &stream, stream_sample_t * stream_sample_t *buffer = outputs[0]; - /* compute charging values, doing it here ensures that we always use the latest values */ + /* compute charging values, doing it here ensures that we always use the latest values */ one_shot_cap_charging_step = compute_one_shot_cap_charging_rate() / m_our_sample_rate; one_shot_cap_discharging_step = compute_one_shot_cap_discharging_rate() / m_our_sample_rate; |
