ES5506: oeathohteakvtsavegkbrsgdthnlrbh

This commit is contained in:
tildearrow 2023-02-11 18:11:01 -05:00
parent b1edc39a40
commit 72668155ca
2 changed files with 4 additions and 5 deletions

View file

@ -68,7 +68,6 @@ void es5506_core::voice_tick()
{ {
m_ch[ca] += m_voice[i].ch(); m_ch[ca] += m_voice[i].ch();
} }
m_voice[i].ch().reset();
} }
} }
@ -95,9 +94,6 @@ void es5506_core::voice_t::fetch(u8 cycle)
void es5506_core::voice_t::tick(u8 voice) void es5506_core::voice_t::tick(u8 voice)
{ {
m_output[0] = m_output[1] = 0;
m_ch.reset();
// Filter execute // Filter execute
if (m_alu.busy()) if (m_alu.busy())
@ -118,6 +114,9 @@ void es5506_core::voice_t::tick(u8 voice)
} }
} else { } else {
m_filter.tick(m_alu.interpolation()); m_filter.tick(m_alu.interpolation());
m_output[0] = m_output[1] = 0;
m_ch.reset();
} }
// Envelope // Envelope
if (m_ecount != 0) if (m_ecount != 0)

View file

@ -19,7 +19,7 @@ void es550x_shared_core::es550x_voice_t::es550x_alu_t::reset()
m_sample[0] = m_sample[1] = 0; m_sample[0] = m_sample[1] = 0;
} }
bool es550x_shared_core::es550x_voice_t::es550x_alu_t::busy() { return m_cr.stop() == 0; } bool es550x_shared_core::es550x_voice_t::es550x_alu_t::busy() { return !(m_cr.m_stop0 || m_cr.m_stop1); }
bool es550x_shared_core::es550x_voice_t::es550x_alu_t::tick() bool es550x_shared_core::es550x_voice_t::es550x_alu_t::tick()
{ {