Start updating LADSPA plugin for proper timing

This commit is contained in:
Chris Cannam
2021-05-14 11:35:08 +01:00
parent 478d9233fe
commit d9dfc0a84c
5 changed files with 74 additions and 69 deletions

View File

@@ -868,7 +868,8 @@ size_t
RubberBandStretcher::Impl::getLatency() const
{
if (!m_realtime) return 0;
return int((m_aWindowSize/2) / m_pitchScale + 1);
return lrint((m_aWindowSize/2) / m_pitchScale);
// return int(m_aWindowSize/2);
}
void