mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Add messages for IComponentHandlerBusActivation
This commit is contained in:
@@ -64,6 +64,31 @@ class YaComponentHandlerBusActivation
|
|||||||
|
|
||||||
inline bool supported() const { return arguments.supported; }
|
inline bool supported() const { return arguments.supported; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Message to pass through a call to
|
||||||
|
* `IComponentHandlerBusActivation::requestBusActivation(type, dir, index,
|
||||||
|
* state)` to the component handler provided by the host.
|
||||||
|
*/
|
||||||
|
struct RequestBusActivation {
|
||||||
|
using Response = UniversalTResult;
|
||||||
|
|
||||||
|
native_size_t owner_instance_id;
|
||||||
|
|
||||||
|
Steinberg::Vst::MediaType type;
|
||||||
|
Steinberg::Vst::BusDirection dir;
|
||||||
|
int32 index;
|
||||||
|
TBool state;
|
||||||
|
|
||||||
|
template <typename S>
|
||||||
|
void serialize(S& s) {
|
||||||
|
s.value8b(owner_instance_id);
|
||||||
|
s.value4b(type);
|
||||||
|
s.value4b(dir);
|
||||||
|
s.value4b(index);
|
||||||
|
s.value1b(state);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
virtual tresult PLUGIN_API
|
virtual tresult PLUGIN_API
|
||||||
requestBusActivation(Steinberg::Vst::MediaType type,
|
requestBusActivation(Steinberg::Vst::MediaType type,
|
||||||
Steinberg::Vst::BusDirection dir,
|
Steinberg::Vst::BusDirection dir,
|
||||||
|
|||||||
Reference in New Issue
Block a user