SCC: tiny fix

This commit is contained in:
tildearrow 2023-01-29 17:34:50 -05:00
parent a08c343f6d
commit f33564039a

View file

@ -45,6 +45,10 @@ void scc_core::voice_t::tick(const int cycles)
{ {
m_addr = bitfield(m_addr + 1, 0, 5); m_addr = bitfield(m_addr + 1, 0, 5);
m_counter = m_pitch - ((temp<cycles)?(cycles-temp-1):0); m_counter = m_pitch - ((temp<cycles)?(cycles-temp-1):0);
while (m_counter>m_pitch) {
m_addr = bitfield(m_addr + 1, 0, 5);
m_counter+=m_pitch-1;
}
} }
} }
// get output // get output