mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
Implement IComponent::getBusCount()
This commit is contained in:
@@ -62,6 +62,7 @@ using ControlRequest = std::variant<YaComponent::Construct,
|
||||
YaComponent::Initialize,
|
||||
YaComponent::Terminate,
|
||||
YaComponent::SetIoMode,
|
||||
YaComponent::GetBusCount,
|
||||
YaPluginFactory::Construct,
|
||||
YaPluginFactory::SetHostContext>;
|
||||
|
||||
|
||||
@@ -192,6 +192,27 @@ class YaComponent : public Steinberg::Vst::IComponent {
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
setIoMode(Steinberg::Vst::IoMode mode) override = 0;
|
||||
|
||||
/**
|
||||
* Message to pass through a call to `IComponent::getBusCount(type, dir)` to
|
||||
* the Wine plugin host.
|
||||
*/
|
||||
struct GetBusCount {
|
||||
using Response = UniversalTResult;
|
||||
|
||||
native_size_t instance_id;
|
||||
|
||||
Steinberg::Vst::BusType type;
|
||||
Steinberg::Vst::BusDirection dir;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.value4b(type);
|
||||
s.value4b(dir);
|
||||
}
|
||||
};
|
||||
|
||||
virtual int32 PLUGIN_API
|
||||
getBusCount(Steinberg::Vst::MediaType type,
|
||||
Steinberg::Vst::BusDirection dir) override = 0;
|
||||
|
||||
Reference in New Issue
Block a user