Added diagnostics to see how often the parameters have been set. Added a somewhat hacky way to avoid doing the parameter updates if not needed, using raw memory comparison.

This commit is contained in:
xenakios
2017-11-14 19:44:13 +02:00
parent 6487880fb3
commit d442e2eaea
3 changed files with 11 additions and 1 deletions

View File

@ -91,6 +91,7 @@ public:
void setLoopingEnabled(bool b);
void setMaxLoops(int64_t numloops) { m_maxloops = numloops; }
void setAudioBufferAsInputSource(AudioBuffer<float>* buf, int sr, int len);
int m_param_change_count = 0;
private:
CircularBuffer<float> m_stretchoutringbuf{ 1024 * 1024 };
AudioBuffer<float> m_file_inbuf;