comparison data/model/WaveFileModel.h @ 1086:9f4505ac9072

Tidy dense time-value model API a bit; add first simple unit test for FFT model
author Chris Cannam
date Wed, 10 Jun 2015 17:06:02 +0100
parents 0fd3661bcfff
children 4d9816ba0ebe b9faee02afa5
comparison
equal deleted inserted replaced
1085:bf6f64dabe73 1086:9f4505ac9072
61 virtual sv_frame_t getEndFrame() const { return m_startFrame + getFrameCount(); } 61 virtual sv_frame_t getEndFrame() const { return m_startFrame + getFrameCount(); }
62 62
63 void setStartFrame(sv_frame_t startFrame) { m_startFrame = startFrame; } 63 void setStartFrame(sv_frame_t startFrame) { m_startFrame = startFrame; }
64 64
65 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count, 65 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count,
66 float *buffer) const; 66 float *buffer) const;
67 67
68 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count, 68 virtual sv_frame_t getMultiChannelData(int fromchannel, int tochannel,
69 double *buffer) const; 69 sv_frame_t start, sv_frame_t count,
70 70 float **buffers) const;
71 virtual sv_frame_t getData(int fromchannel, int tochannel,
72 sv_frame_t start, sv_frame_t count,
73 float **buffers) const;
74 71
75 virtual int getSummaryBlockSize(int desired) const; 72 virtual int getSummaryBlockSize(int desired) const;
76 73
77 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count, 74 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count,
78 RangeBlock &ranges, 75 RangeBlock &ranges,