Count calls to prepareToPlay
This commit is contained in:
parent
1a8bddeb9b
commit
a3b034ac44
@ -259,7 +259,8 @@ void PaulstretchpluginAudioProcessorEditor::timerCallback(int id)
|
|||||||
String infotext;
|
String infotext;
|
||||||
if (processor.m_show_technical_info)
|
if (processor.m_show_technical_info)
|
||||||
{
|
{
|
||||||
infotext += String(processor.getStretchSource()->m_param_change_count);
|
infotext += String(processor.m_prepare_count)+" ";
|
||||||
|
infotext += String(processor.getStretchSource()->m_param_change_count);
|
||||||
infotext += " param changes ";
|
infotext += " param changes ";
|
||||||
}
|
}
|
||||||
infotext += m_last_err + " [FFT size " +
|
infotext += m_last_err + " [FFT size " +
|
||||||
|
@ -403,7 +403,8 @@ double PaulstretchpluginAudioProcessor::getSampleRateChecked()
|
|||||||
|
|
||||||
void PaulstretchpluginAudioProcessor::prepareToPlay(double sampleRate, int samplesPerBlock)
|
void PaulstretchpluginAudioProcessor::prepareToPlay(double sampleRate, int samplesPerBlock)
|
||||||
{
|
{
|
||||||
ScopedLock locker(m_cs);
|
++m_prepare_count;
|
||||||
|
ScopedLock locker(m_cs);
|
||||||
m_cur_sr = sampleRate;
|
m_cur_sr = sampleRate;
|
||||||
m_curmaxblocksize = samplesPerBlock;
|
m_curmaxblocksize = samplesPerBlock;
|
||||||
m_input_buffer.setSize(getMainBusNumInputChannels(), samplesPerBlock);
|
m_input_buffer.setSize(getMainBusNumInputChannels(), samplesPerBlock);
|
||||||
|
@ -165,6 +165,7 @@ public:
|
|||||||
std::unique_ptr<AudioThumbnail> m_thumb;
|
std::unique_ptr<AudioThumbnail> m_thumb;
|
||||||
bool m_show_technical_info = false;
|
bool m_show_technical_info = false;
|
||||||
Range<double> m_wave_view_range;
|
Range<double> m_wave_view_range;
|
||||||
|
int m_prepare_count = 0;
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user