mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add message structs for IUnitHandler2
This commit is contained in:
@@ -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 <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(owner_instance_id);
|
||||
}
|
||||
};
|
||||
|
||||
virtual tresult PLUGIN_API notifyUnitByBusChange() override = 0;
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user