Finally support changing FFT size. This however doesn't now use the double stretch source thing, so glitches will probably happen... Parameter component was changed to support changing the parameter value only on mouse releasee etc

This commit is contained in:
xenakios
2017-11-17 16:41:33 +02:00
parent 3cdc6eabd6
commit 6aa514f52b
4 changed files with 35 additions and 10 deletions

View File

@ -437,10 +437,11 @@ void StretchAudioSource::setFFTWindowingType(int windowtype)
void StretchAudioSource::setFFTSize(int size)
{
jassert(size>0);
if (size != m_process_fftsize)
if (m_process_fftsize == 0 || size != m_process_fftsize)
{
m_process_fftsize = size;
initObjects();
++m_param_change_count;
}
}