Mercurial > hg > svcore
comparison plugin/transform/FeatureExtractionModelTransformer.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 | 399ea254afd6 |
children |
comparison
equal
deleted
inserted
replaced
362:cc4eb32efc6c | 363:0e30c8ec15a0 |
---|---|
45 void addFeature(size_t blockFrame, | 45 void addFeature(size_t blockFrame, |
46 const Vamp::Plugin::Feature &feature); | 46 const Vamp::Plugin::Feature &feature); |
47 | 47 |
48 void setCompletion(int); | 48 void setCompletion(int); |
49 | 49 |
50 void getFrames(int channel, int channelCount, | 50 void getFrames(int channelCount, long startFrame, long size, |
51 long startFrame, long size, float *buffer); | 51 float **buffer); |
52 | 52 |
53 // just casts | 53 // just casts |
54 DenseTimeValueModel *getConformingInput(); | 54 DenseTimeValueModel *getConformingInput(); |
55 template <typename ModelClass> ModelClass *getConformingOutput() { | 55 template <typename ModelClass> ModelClass *getConformingOutput() { |
56 ModelClass *mc = dynamic_cast<ModelClass *>(m_output); | 56 ModelClass *mc = dynamic_cast<ModelClass *>(m_output); |