comparison data/model/WritableWaveFileModel.h @ 1096:4d9816ba0ebe simple-fft-model

Rework audio file reader API to prefer using std containers
author Chris Cannam
date Mon, 15 Jun 2015 12:19:47 +0100
parents 9f4505ac9072
children efea94b04d5a
comparison
equal deleted inserted replaced
1095:b66734b5f806 1096:4d9816ba0ebe
58 virtual sv_frame_t getStartFrame() const { return m_startFrame; } 58 virtual sv_frame_t getStartFrame() const { return m_startFrame; }
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 std::vector<float> getData(int channel, sv_frame_t start, sv_frame_t count) const;
64 float *buffer) const;
65 64
66 virtual sv_frame_t getMultiChannelData(int fromchannel, int tochannel, 65 virtual std::vector<std::vector<float>> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const;
67 sv_frame_t start, sv_frame_t count,
68 float **buffer) const;
69 66
70 virtual int getSummaryBlockSize(int desired) const; 67 virtual int getSummaryBlockSize(int desired) const;
71 68
72 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count, 69 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count,
73 RangeBlock &ranges, int &blockSize) const; 70 RangeBlock &ranges, int &blockSize) const;