diff options
author | cam900 <dbtlrchl@naver.com> | 2018-04-27 17:46:34 +0900 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2018-04-28 00:11:51 +1000 |
commit | 5943373e917a7dec185dd1ecbddbf27a4febdc5c (patch) | |
tree | 0ab654a3e40f1a1ba5f53f55414c23688446fc18 /src/devices/sound | |
parent | 636481edbd0b6d65da6bb545db0b0d13f03661ef (diff) |
c6280.cpp : Fix LFO
<<1 is same at patent, not +1 (reference:https://patents.google.com/patent/US4924744A/)
Diffstat (limited to 'src/devices/sound')
-rw-r--r-- | src/devices/sound/c6280.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/c6280.cpp b/src/devices/sound/c6280.cpp index 8a72c691a3e..c0a91f36651 100644 --- a/src/devices/sound/c6280.cpp +++ b/src/devices/sound/c6280.cpp @@ -130,7 +130,7 @@ void c6280_device::sound_stream_update(sound_stream &stream, stream_sample_t **i m_channel[1].m_counter &= 0x1FFFF; lfo_data = m_channel[1].m_waveform[lfooffset]; if (m_lfo_control & 3) - step += ((lfo_data - 16) << ((m_lfo_control-1)+1)); // verified from patent, TODO : same in real hardware? + step += ((lfo_data - 16) << ((m_lfo_control-1)<<1)); // verified from patent, TODO : same in real hardware? offset = (m_channel[0].m_counter >> 12) & 0x1F; m_channel[0].m_counter += m_wave_freq_tab[step & 0xfff]; |