Document the plugin factory approach

This commit is contained in:
Robbert van der Helm
2020-12-08 14:21:54 +01:00
parent ed743e6f22
commit f4a5aa91fb
3 changed files with 39 additions and 28 deletions
+7 -1
View File
@@ -41,6 +41,8 @@ class YaComponent : public Steinberg::Vst::IComponent {
* ...)`.
*/
struct Create {
// TODO: This should be `std::optional<YaComponent>`, and we need a way
// to deserialize that into an existing YaComponent.
using Response = YaComponent&;
Steinberg::TUID cid;
@@ -58,7 +60,11 @@ class YaComponent : public Steinberg::Vst::IComponent {
*/
explicit YaComponent(Steinberg::IPtr<Steinberg::Vst::IComponent> component);
virtual ~YaComponent();
/**
* @remark The plugin side implementation should send a control message to
* clean up the instance on the Wine side in its destructor.
*/
virtual ~YaComponent() = 0;
DECLARE_FUNKNOWN_METHODS