mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 04:50:14 +02:00
Add stubs for IComponentHandler2
This commit is contained in:
@@ -23,10 +23,12 @@ Vst3ComponentHandlerProxy::ConstructArgs::ConstructArgs(
|
||||
size_t owner_instance_id)
|
||||
: owner_instance_id(owner_instance_id),
|
||||
component_handler_args(object),
|
||||
component_handler_2_args(object),
|
||||
unit_handler_args(object) {}
|
||||
|
||||
Vst3ComponentHandlerProxy::Vst3ComponentHandlerProxy(const ConstructArgs&& args)
|
||||
: YaComponentHandler(std::move(args.component_handler_args)),
|
||||
YaComponentHandler2(std::move(args.component_handler_2_args)),
|
||||
YaUnitHandler(std::move(args.unit_handler_args)),
|
||||
arguments(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
@@ -48,6 +50,10 @@ Vst3ComponentHandlerProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IComponentHandler::iid,
|
||||
Steinberg::Vst::IComponentHandler)
|
||||
}
|
||||
if (YaComponentHandler2::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IComponentHandler2::iid,
|
||||
Steinberg::Vst::IComponentHandler2)
|
||||
}
|
||||
if (YaUnitHandler::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IUnitHandler::iid,
|
||||
Steinberg::Vst::IUnitHandler)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user