Mercurial > hg > svcore
diff data/model/DenseTimeValueModel.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 |
line wrap: on
line diff
--- a/data/model/DenseTimeValueModel.h Tue Dec 13 12:03:48 2016 +0000 +++ b/data/model/DenseTimeValueModel.h Tue Dec 13 15:23:21 2016 +0000 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _DENSE_TIME_VALUE_MODEL_H_ -#define _DENSE_TIME_VALUE_MODEL_H_ +#ifndef SV_DENSE_TIME_VALUE_MODEL_H +#define SV_DENSE_TIME_VALUE_MODEL_H #include <QObject> @@ -64,7 +64,8 @@ * If the channel is given as -1, mix all available channels and * return the result. */ - virtual std::vector<float> getData(int channel, sv_frame_t start, sv_frame_t count) const = 0; + virtual floatvec_t getData(int channel, sv_frame_t start, sv_frame_t count) + const = 0; /** * Get the specified set of samples from given contiguous range of @@ -72,12 +73,18 @@ * format. Returned vector may have fewer samples than requested, * if the end of file was reached. */ - virtual std::vector<std::vector<float>> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const = 0; + virtual std::vector<floatvec_t> getMultiChannelData(int fromchannel, + int tochannel, + sv_frame_t start, + sv_frame_t count) + const = 0; virtual bool canPlay() const { return true; } virtual QString getDefaultPlayClipId() const { return ""; } - virtual QString toDelimitedDataStringSubset(QString delimiter, sv_frame_t f0, sv_frame_t f1) const; + virtual QString toDelimitedDataStringSubset(QString delimiter, + sv_frame_t f0, sv_frame_t f1) + const; QString getTypeName() const { return tr("Dense Time-Value"); } };