Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/hostext/PluginInputDomainAdapter.h @ 190:1982246a3902
* Provide PluginWrapper method for getting hold of a nested wrapper
directly (a bit gross, but useful)
* Use the above to enable the simple host to adjust timestamps
appropriately when printing out results from input domain adapter
wrapped plugins
author | cannam |
---|---|
date | Wed, 17 Sep 2008 13:16:09 +0000 |
parents | 6683f99107cf |
children |
comparison
equal
deleted
inserted
replaced
189:5ce2c3f79a45 | 190:1982246a3902 |
---|---|
89 size_t getPreferredStepSize() const; | 89 size_t getPreferredStepSize() const; |
90 size_t getPreferredBlockSize() const; | 90 size_t getPreferredBlockSize() const; |
91 | 91 |
92 FeatureSet process(const float *const *inputBuffers, RealTime timestamp); | 92 FeatureSet process(const float *const *inputBuffers, RealTime timestamp); |
93 | 93 |
94 /** | |
95 * Return the amount by which the timestamps supplied to process() | |
96 * are being incremented when they are passed to the plugin's own | |
97 * process() implementation. | |
98 * | |
99 * The Vamp API mandates that the timestamp passed to the plugin | |
100 * for time-domain input should be the time of the first sample in | |
101 * the block, but the timestamp passed for frequency-domain input | |
102 * should be the timestamp of the centre of the block. | |
103 * | |
104 * The PluginInputDomainAdapter adjusts its timestamps properly so | |
105 * that the plugin receives correct times, but in some | |
106 * circumstances (such as for establishing the correct timing of | |
107 * implicitly-timed features, i.e. features without their own | |
108 * timestamps) the host may need to be aware that this adjustment | |
109 * is taking place. | |
110 * | |
111 * If the plugin requires time-domain input, this function will | |
112 * return zero. The result of calling this function before | |
113 * initialise() has been called is undefined. | |
114 */ | |
115 RealTime getTimestampAdjustment() const; | |
116 | |
94 protected: | 117 protected: |
95 class Impl; | 118 class Impl; |
96 Impl *m_impl; | 119 Impl *m_impl; |
97 }; | 120 }; |
98 | 121 |