comparison vamp-hostsdk/PluginSummarisingAdapter.h @ 538:8ffb8985ae8f

Add ability to disown a wrapped plugin - making it possible to use the adapters in some situations involving managed pointers that didn't work previously
author Chris Cannam
date Thu, 23 Apr 2020 11:39:34 +0100
parents 2e16d99867bd
children
comparison
equal deleted inserted replaced
537:b9422f3e63a4 538:8ffb8985ae8f
87 { 87 {
88 public: 88 public:
89 /** 89 /**
90 * Construct a PluginSummarisingAdapter wrapping the given plugin. 90 * Construct a PluginSummarisingAdapter wrapping the given plugin.
91 * The adapter takes ownership of the plugin, which will be 91 * The adapter takes ownership of the plugin, which will be
92 * deleted when the adapter is deleted. 92 * deleted when the adapter is deleted. If you wish to prevent
93 * this, call disownPlugin().
93 */ 94 */
94 PluginSummarisingAdapter(Plugin *plugin); 95 PluginSummarisingAdapter(Plugin *plugin);
95 virtual ~PluginSummarisingAdapter(); 96 virtual ~PluginSummarisingAdapter();
96 97
97 bool initialise(size_t channels, size_t stepSize, size_t blockSize); 98 bool initialise(size_t channels, size_t stepSize, size_t blockSize);