Implement IComponent::activateBus()

This commit is contained in:
Robbert van der Helm
2020-12-13 22:07:19 +01:00
parent 16b949bccf
commit 43296675f6
6 changed files with 51 additions and 3 deletions
+1
View File
@@ -65,6 +65,7 @@ using ControlRequest = std::variant<YaComponent::Construct,
YaComponent::GetBusCount,
YaComponent::GetBusInfo,
YaComponent::GetRoutingInfo,
YaComponent::ActivateBus,
YaPluginFactory::Construct,
YaPluginFactory::SetHostContext>;
+25
View File
@@ -301,6 +301,31 @@ class YaComponent : public Steinberg::Vst::IComponent {
virtual tresult PLUGIN_API
getRoutingInfo(Steinberg::Vst::RoutingInfo& inInfo,
Steinberg::Vst::RoutingInfo& outInfo /*out*/) override = 0;
/**
* Message to pass through a call to `IComponent::activateBus(type, dir,
* index, state)` to the Wine plugin host.
*/
struct ActivateBus {
using Response = UniversalTResult;
native_size_t instance_id;
Steinberg::Vst::MediaType type;
Steinberg::Vst::BusDirection dir;
int32 index;
TBool state;
template <typename S>
void serialize(S& s) {
s.value8b(instance_id);
s.value4b(type);
s.value4b(dir);
s.value4b(index);
s.value1b(state);
}
};
virtual tresult PLUGIN_API activateBus(Steinberg::Vst::MediaType type,
Steinberg::Vst::BusDirection dir,
int32 index,