comparison vamp-hostsdk/PluginInputDomainAdapter.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 5cb298435765
children
comparison
equal deleted inserted replaced
537:b9422f3e63a4 538:8ffb8985ae8f
77 * added in v2.3 of the SDK.) 77 * added in v2.3 of the SDK.)
78 * 78 *
79 * In every respect other than its input domain handling, the 79 * In every respect other than its input domain handling, the
80 * PluginInputDomainAdapter behaves identically to the plugin that it 80 * PluginInputDomainAdapter behaves identically to the plugin that it
81 * wraps. The wrapped plugin will be deleted when the wrapper is 81 * wraps. The wrapped plugin will be deleted when the wrapper is
82 * deleted. 82 * deleted. If you wish to prevent this, call disownPlugin().
83 * 83 *
84 * \note This class was introduced in version 1.1 of the Vamp plugin SDK. 84 * \note This class was introduced in version 1.1 of the Vamp plugin SDK.
85 */ 85 */
86 86
87 class PluginInputDomainAdapter : public PluginWrapper 87 class PluginInputDomainAdapter : public PluginWrapper
88 { 88 {
89 public: 89 public:
90 /** 90 /**
91 * Construct a PluginInputDomainAdapter wrapping the given plugin. 91 * Construct a PluginInputDomainAdapter wrapping the given plugin.
92 * The adapter takes ownership of the plugin, which will be 92 * The adapter takes ownership of the plugin, which will be
93 * deleted when the adapter is deleted. 93 * deleted when the adapter is deleted. If you wish to prevent
94 * this, call disownPlugin().
94 */ 95 */
95 PluginInputDomainAdapter(Plugin *plugin); 96 PluginInputDomainAdapter(Plugin *plugin);
96 virtual ~PluginInputDomainAdapter(); 97 virtual ~PluginInputDomainAdapter();
97 98
98 bool initialise(size_t channels, size_t stepSize, size_t blockSize); 99 bool initialise(size_t channels, size_t stepSize, size_t blockSize);