comparison 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
comparison
equal deleted inserted replaced
362:cc4eb32efc6c 363:0e30c8ec15a0
69 * return the result. 69 * return the result.
70 */ 70 */
71 virtual size_t getData(int channel, size_t start, size_t count, 71 virtual size_t getData(int channel, size_t start, size_t count,
72 double *buffer) const = 0; 72 double *buffer) const = 0;
73 73
74 /**
75 * Get the specified set of samples from given contiguous range
76 * of channels of the model in single-precision floating-point
77 * format. Return the number of sample frames actually retrieved.
78 */
79 virtual size_t getData(size_t fromchannel, size_t tochannel,
80 size_t start, size_t count,
81 float **buffers) const = 0;
82
74 QString getTypeName() const { return tr("Dense Time-Value"); } 83 QString getTypeName() const { return tr("Dense Time-Value"); }
75 }; 84 };
76 85
77 #endif 86 #endif