comparison data/model/AggregateWaveModel.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 54af1e21705c
comparison
equal deleted inserted replaced
1095:b66734b5f806 1096:4d9816ba0ebe
57 float getValueMaximum() const { return 1.0f; } 57 float getValueMaximum() const { return 1.0f; }
58 58
59 virtual sv_frame_t getStartFrame() const { return 0; } 59 virtual sv_frame_t getStartFrame() const { return 0; }
60 virtual sv_frame_t getEndFrame() const { return getFrameCount(); } 60 virtual sv_frame_t getEndFrame() const { return getFrameCount(); }
61 61
62 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count, 62 virtual std::vector<float> getData(int channel, sv_frame_t start, sv_frame_t count) const;
63 float *buffer) const;
64 63
65 virtual sv_frame_t getMultiChannelData(int fromchannel, int tochannel, 64 virtual std::vector<std::vector<float>> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const;
66 sv_frame_t start, sv_frame_t count,
67 float **buffer) const;
68 65
69 virtual int getSummaryBlockSize(int desired) const; 66 virtual int getSummaryBlockSize(int desired) const;
70 67
71 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count, 68 virtual void getSummaries(int channel, sv_frame_t start, sv_frame_t count,
72 RangeBlock &ranges, 69 RangeBlock &ranges,