mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-15 21:15:51 +02:00
Implement IComponent::setIoMode()
This commit is contained in:
@@ -61,6 +61,7 @@ using ControlRequest = std::variant<YaComponent::Construct,
|
||||
YaComponent::Destruct,
|
||||
YaComponent::Initialize,
|
||||
YaComponent::Terminate,
|
||||
YaComponent::SetIoMode,
|
||||
YaPluginFactory::Construct,
|
||||
YaPluginFactory::SetHostContext>;
|
||||
|
||||
|
||||
@@ -171,6 +171,25 @@ class YaComponent : public Steinberg::Vst::IComponent {
|
||||
|
||||
// From `IComponent`
|
||||
tresult PLUGIN_API getControllerClassId(Steinberg::TUID classId) override;
|
||||
|
||||
/**
|
||||
* Message to pass through a call to `IComponent::setIoMode(IoMode)` to the
|
||||
* Wine plugin host.
|
||||
*/
|
||||
struct SetIoMode {
|
||||
using Response = UniversalTResult;
|
||||
|
||||
native_size_t instance_id;
|
||||
|
||||
Steinberg::Vst::IoMode mode;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.value4b(mode);
|
||||
}
|
||||
};
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
setIoMode(Steinberg::Vst::IoMode mode) override = 0;
|
||||
virtual int32 PLUGIN_API
|
||||
|
||||
Reference in New Issue
Block a user