comparison data/model/FFTModel.h @ 1725:78fe29adfd16

Re-implement extendEndFrame behaviour, used by Tony application
author Chris Cannam
date Wed, 19 Jun 2019 13:32:52 +0100
parents 0d89abd631ac
children b92bdcd4954b
comparison
equal deleted inserted replaced
1724:157c62ff0056 1725:78fe29adfd16
63 int getWidth() const override; 63 int getWidth() const override;
64 int getHeight() const override; 64 int getHeight() const override;
65 float getValueAt(int x, int y) const override { return getMagnitudeAt(x, y); } 65 float getValueAt(int x, int y) const override { return getMagnitudeAt(x, y); }
66 bool isOK() const override { return m_model && m_model->isOK(); } 66 bool isOK() const override { return m_model && m_model->isOK(); }
67 sv_frame_t getStartFrame() const override { return 0; } 67 sv_frame_t getStartFrame() const override { return 0; }
68 sv_frame_t getEndFrame() const override { 68 sv_frame_t getTrueEndFrame() const override {
69 return sv_frame_t(getWidth()) * getResolution() + getResolution(); 69 return sv_frame_t(getWidth()) * getResolution() + getResolution();
70 } 70 }
71 sv_samplerate_t getSampleRate() const override { 71 sv_samplerate_t getSampleRate() const override {
72 return isOK() ? m_model->getSampleRate() : 0; 72 return isOK() ? m_model->getSampleRate() : 0;
73 } 73 }