Mercurial > hg > svcore
diff data/model/DenseTimeValueModel.h @ 363:0e30c8ec15a0
* Add wave file model method for reading more than one channel at once,
avoiding ludicrously expensive backward seeks and double-reads when
playing multi-channel files or using them as inputs to feature extraction
plugins
author | Chris Cannam |
---|---|
date | Thu, 24 Jan 2008 14:35:43 +0000 |
parents | 700cd3350391 |
children | 5858cc462d0a |
line wrap: on
line diff
--- a/data/model/DenseTimeValueModel.h Thu Jan 24 11:03:59 2008 +0000 +++ b/data/model/DenseTimeValueModel.h Thu Jan 24 14:35:43 2008 +0000 @@ -71,6 +71,15 @@ virtual size_t getData(int channel, size_t start, size_t count, double *buffer) const = 0; + /** + * Get the specified set of samples from given contiguous range + * of channels of the model in single-precision floating-point + * format. Return the number of sample frames actually retrieved. + */ + virtual size_t getData(size_t fromchannel, size_t tochannel, + size_t start, size_t count, + float **buffers) const = 0; + QString getTypeName() const { return tr("Dense Time-Value"); } };