comparison data/model/WritableWaveFileModel.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
59 virtual sv_frame_t getEndFrame() const { return m_startFrame + getFrameCount(); } 59 virtual sv_frame_t getEndFrame() const { return m_startFrame + getFrameCount(); }
60 60
61 void setStartFrame(sv_frame_t startFrame); 61 void setStartFrame(sv_frame_t startFrame);
62 62
63 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count, 63 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count,
64 float *buffer) const; 64 float *buffer) const;
65 65
66 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count, 66 virtual sv_frame_t getMultiChannelData(int fromchannel, int tochannel,
67 double *buffer) const; 67 sv_frame_t start, sv_frame_t count,
68 68 float **buffer) const;
69 virtual sv_frame_t getData(int fromchannel, int tochannel,
70 sv_frame_t start, sv_frame_t count,
71 float **buffer) const;
72 69
73 virtual int getSummaryBlockSize(int desired) const; 70 virtual int getSummaryBlockSize(int desired) const;
74 71
75 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count, 72 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count,
76 RangeBlock &ranges, int &blockSize) const; 73 RangeBlock &ranges, int &blockSize) const;