The stretch source doesn't really need to do anything except inc the param change count when the spectral module enabled parameters have changed. However this could get messed up if the spectral module order isn't correctly set in the stretcher instances already...Hmm.

This commit is contained in:
xenakios 2018-05-01 19:17:59 +03:00
parent fa2564f908
commit cfbbad0e74

View File

@ -204,16 +204,12 @@ void StretchAudioSource::setSpectralModulesEnabled(const std::array<AudioParamet
} }
} }
#endif #endif
void StretchAudioSource::setSpectralModuleEnabled(int index, bool b) void StretchAudioSource::setSpectralModuleEnabled(int index, bool b)
{ {
Logger::writeToLog(String(index));
ScopedLock locker(m_cs);
for (int i = 0; i < m_stretchers.size(); ++i)
{
m_stretchers[i]->m_spectrum_processes = m_specproc_order;
}
++m_param_change_count; ++m_param_change_count;
} }
void StretchAudioSource::setLoopXFadeLength(double lenseconds) void StretchAudioSource::setLoopXFadeLength(double lenseconds)
{ {
if (lenseconds == m_loopxfadelen) if (lenseconds == m_loopxfadelen)