comparison data/model/test/MockWaveModel.h @ 1326:54af1e21705c 3.0-integration

Update to use bqvec allocator for float vectors
author Chris Cannam
date Tue, 13 Dec 2016 15:23:21 +0000
parents 4d9816ba0ebe
children c01cbe41aeb5
comparison
equal deleted inserted replaced
1325:3aea4f7617bb 1326:54af1e21705c
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 std::vector<float> getData(int channel, sv_frame_t start, sv_frame_t count) const; 44 virtual floatvec_t getData(int channel, sv_frame_t start, sv_frame_t count) const;
45 virtual std::vector<std::vector<float>> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const; 45 virtual std::vector<floatvec_t> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const;
46 46
47 virtual bool canPlay() const { return true; } 47 virtual bool canPlay() const { return true; }
48 virtual QString getDefaultPlayClipId() const { return ""; } 48 virtual QString getDefaultPlayClipId() const { return ""; }
49 49
50 virtual sv_frame_t getStartFrame() const { return 0; } 50 virtual sv_frame_t getStartFrame() const { return 0; }