Mercurial > hg > svapp
diff framework/TransformUserConfigurator.h @ 740:846970dbef17 audio-source-refactor
Use shared_ptr for plugin instances throughout
author | Chris Cannam |
---|---|
date | Fri, 20 Mar 2020 16:31:58 +0000 |
parents | 7540733f5480 |
children |
line wrap: on
line diff
--- a/framework/TransformUserConfigurator.h Thu Mar 19 16:14:02 2020 +0000 +++ b/framework/TransformUserConfigurator.h Fri Mar 20 16:31:58 2020 +0000 @@ -17,6 +17,8 @@ #include "transform/ModelTransformerFactory.h" +#include <memory> + class TransformUserConfigurator : public ModelTransformerFactory::UserConfigurator { public: @@ -24,7 +26,7 @@ bool configure(ModelTransformer::Input &input, Transform &transform, - Vamp::PluginBase *plugin, + std::shared_ptr<Vamp::PluginBase> plugin, ModelId &inputModel, AudioPlaySource *source, sv_frame_t startFrame, @@ -37,7 +39,8 @@ private: bool getChannelRange(TransformId identifier, - Vamp::PluginBase *plugin, int &min, int &max); + std::shared_ptr<Vamp::PluginBase> plugin, + int &min, int &max); };