summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
author cam900 <dbtlrchl@naver.com>2018-10-28 12:24:57 +0900
committer GitHub <noreply@github.com>2018-10-28 12:24:57 +0900
commit4069f1d054366a4a66f5611eb4bf1de0d0813796 (patch)
tree44654cf77a2ec14f23e5812f5f3fbab36e54a1a7 /src
parent82501770dedcdeddb20aa1ef8fe2f46a3d4179bb (diff)
c6280.cpp : Fix LFO scale bit
Diffstat (limited to 'src')
-rw-r--r--src/devices/sound/c6280.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/sound/c6280.cpp b/src/devices/sound/c6280.cpp
index 647a7e5f4cb..0e5873c86de 100644
--- a/src/devices/sound/c6280.cpp
+++ b/src/devices/sound/c6280.cpp
@@ -134,7 +134,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 & 3)-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];