Add stubs for IProgress

This commit is contained in:
Robbert van der Helm
2021-01-16 18:09:39 +01:00
parent bfdfd9c341
commit e840fe3114
4 changed files with 41 additions and 0 deletions
@@ -26,6 +26,7 @@ Vst3ComponentHandlerProxy::ConstructArgs::ConstructArgs(
component_handler_2_args(object),
component_handler_3_args(object),
component_handler_bus_activation_args(object),
progress_args(object),
unit_handler_args(object),
unit_handler_2_args(object) {}
@@ -35,6 +36,7 @@ Vst3ComponentHandlerProxy::Vst3ComponentHandlerProxy(const ConstructArgs&& args)
YaComponentHandler3(std::move(args.component_handler_3_args)),
YaComponentHandlerBusActivation(
std::move(args.component_handler_bus_activation_args)),
YaProgress(std::move(args.progress_args)),
YaUnitHandler(std::move(args.unit_handler_args)),
YaUnitHandler2(std::move(args.unit_handler_2_args)),
arguments(std::move(args)){FUNKNOWN_CTOR}
@@ -70,6 +72,10 @@ Vst3ComponentHandlerProxy::queryInterface(Steinberg::FIDString _iid,
Steinberg::Vst::IComponentHandlerBusActivation::iid,
Steinberg::Vst::IComponentHandlerBusActivation)
}
if (YaProgress::supported()) {
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IProgress::iid,
Steinberg::Vst::IProgress)
}
if (YaUnitHandler::supported()) {
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IUnitHandler::iid,
Steinberg::Vst::IUnitHandler)