Add method to get sanitized samplerate as getSampleRate might return 0.0 when called from outside audio processing method. Comment out Spectral visualizer instance in editor.

This commit is contained in:
xenakios
2017-12-17 18:16:39 +02:00
parent 9e7b37afba
commit 7ea18cc805
4 changed files with 25 additions and 11 deletions

View File

@ -98,6 +98,7 @@ public:
StretchAudioSource* getStretchSource() { return m_stretch_source.get(); }
double getPreBufferingPercent();
void timerCallback(int id) override;
double getSampleRateChecked();
private:
@ -130,6 +131,8 @@ private:
SharedResourcePointer<MyThumbCache> m_thumbcache;
AudioParameterInt* m_outchansparam = nullptr;
int m_curmaxblocksize = 0;
double m_cur_sr = 0.0;
//==============================================================================
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (PaulstretchpluginAudioProcessor)
};