Add stubs for IComponentHandlerBusActivation

This commit is contained in:
Robbert van der Helm
2021-01-14 16:16:58 +01:00
parent f24632ac8f
commit bfdbfa9196
4 changed files with 30 additions and 0 deletions
@@ -25,6 +25,7 @@ Vst3ComponentHandlerProxy::ConstructArgs::ConstructArgs(
component_handler_args(object),
component_handler_2_args(object),
component_handler_3_args(object),
component_handler_bus_activation_args(object),
unit_handler_args(object),
unit_handler_2_args(object) {}
@@ -32,6 +33,8 @@ Vst3ComponentHandlerProxy::Vst3ComponentHandlerProxy(const ConstructArgs&& args)
: YaComponentHandler(std::move(args.component_handler_args)),
YaComponentHandler2(std::move(args.component_handler_2_args)),
YaComponentHandler3(std::move(args.component_handler_3_args)),
YaComponentHandlerBusActivation(
std::move(args.component_handler_bus_activation_args)),
YaUnitHandler(std::move(args.unit_handler_args)),
YaUnitHandler2(std::move(args.unit_handler_2_args)),
arguments(std::move(args)){FUNKNOWN_CTOR}
@@ -62,6 +65,11 @@ Vst3ComponentHandlerProxy::queryInterface(Steinberg::FIDString _iid,
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IComponentHandler3::iid,
Steinberg::Vst::IComponentHandler3)
}
if (YaComponentHandlerBusActivation::supported()) {
QUERY_INTERFACE(_iid, obj,
Steinberg::Vst::IComponentHandlerBusActivation::iid,
Steinberg::Vst::IComponentHandlerBusActivation)
}
if (YaUnitHandler::supported()) {
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IUnitHandler::iid,
Steinberg::Vst::IUnitHandler)