Removed the phase freeze processing for now.

This commit is contained in:
xenakios
2019-01-17 15:23:01 +02:00
parent 13e39ca30c
commit 23d63c8827
7 changed files with 11 additions and 63 deletions

View File

@ -277,23 +277,6 @@ void StretchAudioSource::setSpectralOrderPreset(int id)
}
}
void StretchAudioSource::setPhaseRefreshRate(int rate)
{
for (auto& e : m_stretchers)
e->setPhaseRefreshRate(rate);
return;
if (rate == m_phase_refresh_rate)
return;
if (m_cs.tryEnter())
{
for (auto& e : m_stretchers)
e->setPhaseRefreshRate(rate);
m_phase_refresh_rate = rate;
++m_param_change_count;
m_cs.exit();
}
}
void StretchAudioSource::getNextAudioBlock(const AudioSourceChannelInfo & bufferToFill)
{
ScopedLock locker(m_cs);