mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Fully implement IParameterFunctionName
We now support all VST 3.7.1 interfaces! At least, in theory we do.
This commit is contained in:
@@ -692,11 +692,23 @@ tresult PLUGIN_API Vst3PluginProxyImpl::getParameterIDFromFunctionName(
|
||||
Steinberg::Vst::UnitID unitID,
|
||||
Steinberg::FIDString functionName,
|
||||
Steinberg::Vst::ParamID& paramID) {
|
||||
// TODO: Implement
|
||||
bridge.logger.log(
|
||||
"TODO: Implement "
|
||||
"IParameterFunctionName::getParameterIDFromFunctionName()");
|
||||
return Steinberg::kNotImplemented;
|
||||
if (functionName) {
|
||||
const GetParameterIDFromFunctionNameResponse response =
|
||||
bridge.send_message(
|
||||
YaParameterFunctionName::GetParameterIDFromFunctionName{
|
||||
.instance_id = instance_id(),
|
||||
.unit_id = unitID,
|
||||
.function_name = functionName});
|
||||
|
||||
paramID = response.param_id;
|
||||
|
||||
return response.result;
|
||||
} else {
|
||||
bridge.logger.log(
|
||||
"WARNING: Null pointer passed to "
|
||||
"'IParameterFunctionName::getParameterIDFromFunctionName()'");
|
||||
return Steinberg::kInvalidArgument;
|
||||
}
|
||||
}
|
||||
|
||||
tresult PLUGIN_API Vst3PluginProxyImpl::initialize(FUnknown* context) {
|
||||
|
||||
Reference in New Issue
Block a user