Mercurial > hg > vamp-plugin-sdk
diff vamp-hostsdk/PluginBufferingAdapter.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/PluginBufferingAdapter.h Wed Apr 22 14:23:51 2020 +0100 +++ b/vamp-hostsdk/PluginBufferingAdapter.h Thu Apr 23 11:39:34 2020 +0100 @@ -69,7 +69,8 @@ * * In other respects, the PluginBufferingAdapter behaves identically * to the plugin that it wraps. The wrapped plugin will be deleted - * when the wrapper is deleted. + * when the wrapper is deleted. If you wish to prevent this, call + * disownPlugin(). */ class PluginBufferingAdapter : public PluginWrapper @@ -78,7 +79,8 @@ /** * Construct a PluginBufferingAdapter 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(). */ PluginBufferingAdapter(Plugin *plugin); virtual ~PluginBufferingAdapter();