Mercurial > hg > sonic-visualiser
comparison transform/PluginTransform.cpp @ 28:b5f55ea61bb8
* stepsize/blocksize from plugin dialog actually working, though with some
puzzlement
| author | Chris Cannam |
|---|---|
| date | Wed, 20 Sep 2006 14:50:40 +0000 |
| parents | 61259228d029 |
| children | bedc7517b6e8 |
comparison
equal
deleted
inserted
replaced
| 27:61259228d029 | 28:b5f55ea61bb8 |
|---|---|
| 12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
| 13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
| 14 */ | 14 */ |
| 15 | 15 |
| 16 #include "PluginTransform.h" | 16 #include "PluginTransform.h" |
| 17 | |
| 18 #include "vamp-sdk/PluginHostAdapter.h" | |
| 17 | 19 |
| 18 PluginTransform::PluginTransform(Model *inputModel, | 20 PluginTransform::PluginTransform(Model *inputModel, |
| 19 const ExecutionContext &context) : | 21 const ExecutionContext &context) : |
| 20 Transform(inputModel), | 22 Transform(inputModel), |
| 21 m_context(context) | 23 m_context(context) |
| 64 | 66 |
| 65 void | 67 void |
| 66 PluginTransform::ExecutionContext::makeConsistentWithPlugin(const Vamp::PluginBase *_plugin) | 68 PluginTransform::ExecutionContext::makeConsistentWithPlugin(const Vamp::PluginBase *_plugin) |
| 67 { | 69 { |
| 68 const Vamp::Plugin *vp = dynamic_cast<const Vamp::Plugin *>(_plugin); | 70 const Vamp::Plugin *vp = dynamic_cast<const Vamp::Plugin *>(_plugin); |
| 71 if (!vp) { | |
| 72 vp = dynamic_cast<const Vamp::PluginHostAdapter *>(_plugin); //!!! why? | |
| 73 } | |
| 69 | 74 |
| 70 if (!vp) { | 75 if (!vp) { |
| 71 domain = Vamp::Plugin::TimeDomain; | 76 domain = Vamp::Plugin::TimeDomain; |
| 72 if (!stepSize) { | 77 if (!stepSize) { |
| 73 if (!blockSize) blockSize = 1024; | 78 if (!blockSize) blockSize = 1024; |
