diff data/model/WaveFileModel.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 166c22eff678
line wrap: on
line diff
--- a/data/model/WaveFileModel.h	Thu Jan 24 11:03:59 2008 +0000
+++ b/data/model/WaveFileModel.h	Thu Jan 24 14:35:43 2008 +0000
@@ -68,6 +68,10 @@
     virtual size_t getData(int channel, size_t start, size_t count,
                            double *buffer) const;
 
+    virtual size_t getData(size_t fromchannel, size_t tochannel,
+                           size_t start, size_t count,
+                           float **buffers) const;
+
     virtual void getSummaries(size_t channel, size_t start, size_t count,
                               RangeBlock &ranges,
                               size_t &blockSize) const;