comparison 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
comparison
equal deleted inserted replaced
362:cc4eb32efc6c 363:0e30c8ec15a0
66 float *buffer) const; 66 float *buffer) const;
67 67
68 virtual size_t getData(int channel, size_t start, size_t count, 68 virtual size_t getData(int channel, size_t start, size_t count,
69 double *buffer) const; 69 double *buffer) const;
70 70
71 virtual size_t getData(size_t fromchannel, size_t tochannel,
72 size_t start, size_t count,
73 float **buffers) const;
74
71 virtual void getSummaries(size_t channel, size_t start, size_t count, 75 virtual void getSummaries(size_t channel, size_t start, size_t count,
72 RangeBlock &ranges, 76 RangeBlock &ranges,
73 size_t &blockSize) const; 77 size_t &blockSize) const;
74 78
75 virtual Range getSummary(size_t channel, size_t start, size_t count) const; 79 virtual Range getSummary(size_t channel, size_t start, size_t count) const;