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

Re-implement extendEndFrame behaviour, used by Tony application
author Chris Cannam
date Wed, 19 Jun 2019 13:32:52 +0100
parents 82d03c9661f9
children 14747f24ad04
comparison
equal deleted inserted replaced
1724:157c62ff0056 1725:78fe29adfd16
75 75
76 float getValueMinimum() const override { return -1.0f; } 76 float getValueMinimum() const override { return -1.0f; }
77 float getValueMaximum() const override { return 1.0f; } 77 float getValueMaximum() const override { return 1.0f; }
78 78
79 sv_frame_t getStartFrame() const override { return m_startFrame; } 79 sv_frame_t getStartFrame() const override { return m_startFrame; }
80 sv_frame_t getEndFrame() const override { return m_startFrame + getFrameCount(); } 80 sv_frame_t getTrueEndFrame() const override { return m_startFrame + getFrameCount(); }
81 81
82 void setStartFrame(sv_frame_t startFrame) override { m_startFrame = startFrame; } 82 void setStartFrame(sv_frame_t startFrame) override { m_startFrame = startFrame; }
83 83
84 floatvec_t getData(int channel, sv_frame_t start, sv_frame_t count) const override; 84 floatvec_t getData(int channel, sv_frame_t start, sv_frame_t count) const override;
85 85