mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 12:30:12 +02:00
Fully implement IParameterFinder
With this we're at VST 3.0.2 support.
This commit is contained in:
@@ -157,3 +157,18 @@ Vst3PlugViewProxyImpl::checkSizeConstraint(Steinberg::ViewRect* rect) {
|
||||
return Steinberg::kInvalidArgument;
|
||||
}
|
||||
}
|
||||
|
||||
tresult PLUGIN_API Vst3PlugViewProxyImpl::findParameter(
|
||||
int32 xPos,
|
||||
int32 yPos,
|
||||
Steinberg::Vst::ParamID& resultTag /*out*/) {
|
||||
const FindParameterResponse response =
|
||||
bridge.send_message(YaParameterFinder::FindParameter{
|
||||
.owner_instance_id = owner_instance_id(),
|
||||
.x_pos = xPos,
|
||||
.y_pos = yPos});
|
||||
|
||||
resultTag = response.result_tag;
|
||||
|
||||
return response.result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user