comparison data/model/test/MockWaveModel.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 5fab8e4f5f19
children 54af1e21705c
comparison
equal deleted inserted replaced
1095:b66734b5f806 1096:4d9816ba0ebe
39 39
40 virtual float getValueMinimum() const { return -1.f; } 40 virtual float getValueMinimum() const { return -1.f; }
41 virtual float getValueMaximum() const { return 1.f; } 41 virtual float getValueMaximum() const { return 1.f; }
42 virtual int getChannelCount() const { return int(m_data.size()); } 42 virtual int getChannelCount() const { return int(m_data.size()); }
43 43
44 virtual sv_frame_t getData(int channel, sv_frame_t start, sv_frame_t count, 44 virtual std::vector<float> getData(int channel, sv_frame_t start, sv_frame_t count) const;
45 float *buffer) const; 45 virtual std::vector<std::vector<float>> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const;
46 virtual sv_frame_t getMultiChannelData(int fromchannel, int tochannel,
47 sv_frame_t start, sv_frame_t count,
48 float **buffers) const;
49 46
50 virtual bool canPlay() const { return true; } 47 virtual bool canPlay() const { return true; }
51 virtual QString getDefaultPlayClipId() const { return ""; } 48 virtual QString getDefaultPlayClipId() const { return ""; }
52 49
53 virtual sv_frame_t getStartFrame() const { return 0; } 50 virtual sv_frame_t getStartFrame() const { return 0; }