diff --git a/src/common/serialization/vst3/component-handler/unit-handler-2.h b/src/common/serialization/vst3/component-handler/unit-handler-2.h index e2362c59..c0db9ef0 100644 --- a/src/common/serialization/vst3/component-handler/unit-handler-2.h +++ b/src/common/serialization/vst3/component-handler/unit-handler-2.h @@ -61,6 +61,22 @@ class YaUnitHandler2 : public Steinberg::Vst::IUnitHandler2 { inline bool supported() const { return arguments.supported; } + /** + * Message to pass through a call to + * `IUnitHandler2::notifyUnitByBusChange()` to the unit handler provided by + * the host. + */ + struct NotifyUnitByBusChange { + using Response = UniversalTResult; + + native_size_t owner_instance_id; + + template + void serialize(S& s) { + s.value8b(owner_instance_id); + } + }; + virtual tresult PLUGIN_API notifyUnitByBusChange() override = 0; protected: