mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-13 20:09:59 +02:00
Implement IEditController2::setKnobMode
This commit is contained in:
@@ -253,6 +253,15 @@ bool Vst3Logger::log_request(bool is_host_vst,
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(bool is_host_vst,
|
||||
const YaEditController2::SetKnobMode& request) {
|
||||
return log_request_base(is_host_vst, [&](auto& message) {
|
||||
message << request.instance_id
|
||||
<< ": IEditController2::setKnobMode(mode = " << request.mode
|
||||
<< ")";
|
||||
});
|
||||
}
|
||||
|
||||
bool Vst3Logger::log_request(
|
||||
bool is_host_vst,
|
||||
const YaPlugView::IsPlatformTypeSupported& request) {
|
||||
|
||||
@@ -88,6 +88,7 @@ class Vst3Logger {
|
||||
bool log_request(bool is_host_vst,
|
||||
const YaEditController::SetComponentHandler&);
|
||||
bool log_request(bool is_host_vst, const YaEditController::CreateView&);
|
||||
bool log_request(bool is_host_vst, const YaEditController2::SetKnobMode&);
|
||||
bool log_request(bool is_host_vst,
|
||||
const YaPlugView::IsPlatformTypeSupported&);
|
||||
bool log_request(bool is_host_vst, const YaPlugView::Attached&);
|
||||
|
||||
@@ -81,6 +81,7 @@ using ControlRequest = std::variant<Vst3PlugViewProxy::Destruct,
|
||||
YaEditController::SetParamNormalized,
|
||||
YaEditController::SetComponentHandler,
|
||||
YaEditController::CreateView,
|
||||
YaEditController2::SetKnobMode,
|
||||
YaPlugView::IsPlatformTypeSupported,
|
||||
YaPlugView::Attached,
|
||||
YaPlugView::Removed,
|
||||
|
||||
@@ -61,6 +61,24 @@ class YaEditController2 : public Steinberg::Vst::IEditController2 {
|
||||
|
||||
inline bool supported() const { return arguments.supported; }
|
||||
|
||||
/**
|
||||
* Message to pass through a call to `IEditController2::setKnobMode(mode)`
|
||||
* to the Wine plugin host.
|
||||
*/
|
||||
struct SetKnobMode {
|
||||
using Response = UniversalTResult;
|
||||
|
||||
native_size_t instance_id;
|
||||
|
||||
Steinberg::Vst::KnobMode mode;
|
||||
|
||||
template <typename S>
|
||||
void serialize(S& s) {
|
||||
s.value8b(instance_id);
|
||||
s.value4b(mode);
|
||||
}
|
||||
};
|
||||
|
||||
virtual tresult PLUGIN_API
|
||||
setKnobMode(Steinberg::Vst::KnobMode mode) override = 0;
|
||||
virtual tresult PLUGIN_API openHelp(TBool onlyCheck) override = 0;
|
||||
|
||||
Reference in New Issue
Block a user