Mercurial > hg > sonic-visualiser
diff 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 |
line wrap: on
line diff
--- a/transform/PluginTransform.cpp Tue Sep 19 14:37:06 2006 +0000 +++ b/transform/PluginTransform.cpp Wed Sep 20 14:50:40 2006 +0000 @@ -15,6 +15,8 @@ #include "PluginTransform.h" +#include "vamp-sdk/PluginHostAdapter.h" + PluginTransform::PluginTransform(Model *inputModel, const ExecutionContext &context) : Transform(inputModel), @@ -66,6 +68,9 @@ PluginTransform::ExecutionContext::makeConsistentWithPlugin(const Vamp::PluginBase *_plugin) { const Vamp::Plugin *vp = dynamic_cast<const Vamp::Plugin *>(_plugin); + if (!vp) { + vp = dynamic_cast<const Vamp::PluginHostAdapter *>(_plugin); //!!! why? + } if (!vp) { domain = Vamp::Plugin::TimeDomain;