Mercurial > hg > vamp-plugin-sdk
diff vamp-hostsdk/PluginChannelAdapter.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 | c97e70ed5abc |
children |
line wrap: on
line diff
--- a/vamp-hostsdk/PluginChannelAdapter.h Wed Apr 22 14:23:51 2020 +0100 +++ b/vamp-hostsdk/PluginChannelAdapter.h Thu Apr 23 11:39:34 2020 +0100 @@ -104,7 +104,7 @@ * In every respect other than its management of channels, the * PluginChannelAdapter behaves identically to the plugin that it * wraps. The wrapped plugin will be deleted when the wrapper is - * deleted. + * deleted. If you wish to prevent this, call disownPlugin(). * * \note This class was introduced in version 1.1 of the Vamp plugin SDK. */ @@ -115,7 +115,8 @@ /** * Construct a PluginChannelAdapter wrapping the given plugin. * The adapter takes ownership of the plugin, which will be - * deleted when the adapter is deleted. + * deleted when the adapter is deleted. If you wish to prevent + * this, call disownPlugin(). */ PluginChannelAdapter(Plugin *plugin); virtual ~PluginChannelAdapter();