Mercurial > hg > vamp-plugin-sdk
comparison 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 |
comparison
equal
deleted
inserted
replaced
537:b9422f3e63a4 | 538:8ffb8985ae8f |
---|---|
67 * different sample rate specification. This is necessary in order to | 67 * different sample rate specification. This is necessary in order to |
68 * obtain correct time stamping. | 68 * obtain correct time stamping. |
69 * | 69 * |
70 * In other respects, the PluginBufferingAdapter behaves identically | 70 * In other respects, the PluginBufferingAdapter behaves identically |
71 * to the plugin that it wraps. The wrapped plugin will be deleted | 71 * to the plugin that it wraps. The wrapped plugin will be deleted |
72 * when the wrapper is deleted. | 72 * when the wrapper is deleted. If you wish to prevent this, call |
73 * disownPlugin(). | |
73 */ | 74 */ |
74 | 75 |
75 class PluginBufferingAdapter : public PluginWrapper | 76 class PluginBufferingAdapter : public PluginWrapper |
76 { | 77 { |
77 public: | 78 public: |
78 /** | 79 /** |
79 * Construct a PluginBufferingAdapter wrapping the given plugin. | 80 * Construct a PluginBufferingAdapter wrapping the given plugin. |
80 * The adapter takes ownership of the plugin, which will be | 81 * The adapter takes ownership of the plugin, which will be |
81 * deleted when the adapter is deleted. | 82 * deleted when the adapter is deleted. If you wish to prevent |
83 * this, call disownPlugin(). | |
82 */ | 84 */ |
83 PluginBufferingAdapter(Plugin *plugin); | 85 PluginBufferingAdapter(Plugin *plugin); |
84 virtual ~PluginBufferingAdapter(); | 86 virtual ~PluginBufferingAdapter(); |
85 | 87 |
86 /** | 88 /** |