comparison data/model/FFTModel.h @ 154:6ec58bb8f729

* Suspend/resume fft data server write activity while reading from a server to repaint the spectrogram display. Makes a significant improvement to the otherwise dreadful responsiveness of spectrogram display.
author Chris Cannam
date Thu, 03 Aug 2006 12:42:15 +0000
parents 21792a550ec9
children ae9be6b6b522
comparison
equal deleted inserted replaced
153:8d92611901d3 154:6ec58bb8f729
98 98
99 virtual int getCompletion() const { return m_server->getFillCompletion(); } 99 virtual int getCompletion() const { return m_server->getFillCompletion(); }
100 100
101 virtual Model *clone() const; 101 virtual Model *clone() const;
102 102
103 virtual void suspend() { m_server->suspend(); }
104 virtual void resume() { m_server->resume(); }
105
103 private: 106 private:
104 FFTModel(const FFTModel &); 107 FFTModel(const FFTModel &);
105 FFTModel &operator=(const FFTModel &); // not implemented 108 FFTModel &operator=(const FFTModel &); // not implemented
106 109
107 FFTDataServer *m_server; 110 FFTDataServer *m_server;