Add stubs for IComponentHandler2

This commit is contained in:
Robbert van der Helm
2021-01-04 21:36:25 +01:00
parent ffde7642f3
commit a997a7cd20
4 changed files with 44 additions and 0 deletions
@@ -17,6 +17,7 @@
#pragma once
#include "../common.h"
#include "component-handler/component-handler-2.h"
#include "component-handler/component-handler.h"
#include "component-handler/unit-handler.h"
@@ -32,6 +33,7 @@
* plugin by the host.
*/
class Vst3ComponentHandlerProxy : public YaComponentHandler,
public YaComponentHandler2,
public YaUnitHandler {
public:
/**
@@ -57,12 +59,14 @@ class Vst3ComponentHandlerProxy : public YaComponentHandler,
native_size_t owner_instance_id;
YaComponentHandler::ConstructArgs component_handler_args;
YaComponentHandler2::ConstructArgs component_handler_2_args;
YaUnitHandler::ConstructArgs unit_handler_args;
template <typename S>
void serialize(S& s) {
s.value8b(owner_instance_id);
s.object(component_handler_args);
s.object(component_handler_2_args);
s.object(unit_handler_args);
}
};