Further tests

This commit is contained in:
Chris Cannam
2024-05-10 11:51:31 +01:00
parent 5b379121c7
commit c6e8d079d9
2 changed files with 127 additions and 27 deletions

View File

@@ -184,6 +184,7 @@ R3LiveShifter::setPitchScale(double scale)
m_log.log(2, "R3LiveShifter::setPitchScale", scale);
if (scale == m_pitchScale) return;
m_pitchScale = scale;
measureResamplerDelay();
}
void
@@ -242,7 +243,7 @@ R3LiveShifter::measureResamplerDelay()
auto outbuf = inbuf;
int outcount = m_inResampler->resampleInterleaved
(outbuf.data(), bs, inbuf.data(), bs, 1.0, false);
(outbuf.data(), bs, inbuf.data(), bs, m_pitchScale, false);
m_inResampler->reset();