Introduce getPreferredStartPad(), deprecate getLatency() and replace with getStartDelay(); document and test both

This commit is contained in:
Chris Cannam
2022-07-05 17:53:36 +01:00
parent 31984af826
commit 72654b04ea
8 changed files with 255 additions and 70 deletions

View File

@@ -159,10 +159,18 @@ public:
RTENTRY__
size_t
getLatency() const
getPreferredStartPad() const
{
if (m_r2) return m_r2->getLatency();
else return m_r3->getLatency();
if (m_r2) return m_r2->getPreferredStartPad();
else return m_r3->getPreferredStartPad();
}
RTENTRY__
size_t
getStartDelay() const
{
if (m_r2) return m_r2->getStartDelay();
else return m_r3->getStartDelay();
}
//!!! review all these
@@ -414,11 +422,26 @@ RubberBandStretcher::getFormantScale() const
return m_d->getFormantScale();
}
RTENTRY__
size_t
RubberBandStretcher::getPreferredStartPad() const
{
return m_d->getPreferredStartPad();
}
RTENTRY__
size_t
RubberBandStretcher::getStartDelay() const
{
return m_d->getStartDelay();
}
RTENTRY__
size_t
RubberBandStretcher::getLatency() const
{
return m_d->getLatency();
// deprecated alias for getStartDelay
return m_d->getStartDelay();
}
RTENTRY__