updated small size layout issues. fixed offline render to actually work correctly based on the passed in parameters.
This commit is contained in:
@ -673,10 +673,10 @@ void StretchAudioSource::setFFTWindowingType(int windowtype)
|
||||
}
|
||||
}
|
||||
|
||||
void StretchAudioSource::setFFTSize(int size)
|
||||
void StretchAudioSource::setFFTSize(int size, bool force)
|
||||
{
|
||||
jassert(size>0);
|
||||
if (m_xfadetask.state == 0 && (m_process_fftsize == 0 || size != m_process_fftsize))
|
||||
if (force || (m_xfadetask.state == 0 && (m_process_fftsize == 0 || size != m_process_fftsize)))
|
||||
{
|
||||
ScopedLock locker(m_cs);
|
||||
if (m_xfadetask.buffer.getNumChannels() < m_num_outchans)
|
||||
@ -684,7 +684,7 @@ void StretchAudioSource::setFFTSize(int size)
|
||||
m_xfadetask.buffer.setSize(m_num_outchans, m_xfadetask.buffer.getNumSamples());
|
||||
|
||||
}
|
||||
if (m_process_fftsize > 0)
|
||||
if (!force && m_process_fftsize > 0)
|
||||
{
|
||||
m_xfadetask.state = 1;
|
||||
m_xfadetask.counter = 0;
|
||||
@ -761,11 +761,11 @@ void StretchAudioSource::setOnsetDetection(double x)
|
||||
}
|
||||
}
|
||||
|
||||
void StretchAudioSource::setPlayRange(Range<double> playrange)
|
||||
void StretchAudioSource::setPlayRange(Range<double> playrange, bool force)
|
||||
{
|
||||
if (playrange == m_playrange || playrange == m_inputfile->getActiveRange())
|
||||
if (!force && (playrange == m_playrange || playrange == m_inputfile->getActiveRange()))
|
||||
return;
|
||||
if (m_cs.tryEnter())
|
||||
if (m_cs.tryEnter() || force)
|
||||
{
|
||||
if (playrange.isEmpty())
|
||||
m_playrange = { 0.0,1.0 };
|
||||
|
@ -65,7 +65,7 @@ public:
|
||||
double getOutputSamplerate() const { return m_outsr; }
|
||||
void setProcessParameters(ProcessParameters* pars);
|
||||
const ProcessParameters& getProcessParameters();
|
||||
void setFFTSize(int size);
|
||||
void setFFTSize(int size, bool force=false);
|
||||
int getFFTSize() { return m_process_fftsize; }
|
||||
|
||||
double getFreezePos() const { return m_freeze_pos; }
|
||||
@ -80,7 +80,7 @@ public:
|
||||
double getOutputDurationSecondsForRange(Range<double> range, int fftsize);
|
||||
|
||||
void setOnsetDetection(double x);
|
||||
void setPlayRange(Range<double> playrange);
|
||||
void setPlayRange(Range<double> playrange, bool force=false);
|
||||
Range<double> getPlayRange() { return m_playrange; }
|
||||
bool isLoopEnabled();
|
||||
bool hasReachedEnd();
|
||||
|
Reference in New Issue
Block a user