mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-09 20:29:10 +02:00
Add stubs for IParameterFunctionName
This commit is contained in:
@@ -35,6 +35,7 @@ Vst3PluginProxy::ConstructArgs::ConstructArgs(
|
|||||||
midi_learn_args(object),
|
midi_learn_args(object),
|
||||||
midi_mapping_args(object),
|
midi_mapping_args(object),
|
||||||
note_expression_controller_args(object),
|
note_expression_controller_args(object),
|
||||||
|
parameter_function_name_args(object),
|
||||||
plugin_base_args(object),
|
plugin_base_args(object),
|
||||||
prefetchable_support_args(object),
|
prefetchable_support_args(object),
|
||||||
process_context_requirements_args(object),
|
process_context_requirements_args(object),
|
||||||
@@ -62,6 +63,7 @@ Vst3PluginProxy::Vst3PluginProxy(const ConstructArgs&& args)
|
|||||||
std::move(args.note_expression_controller_args)),
|
std::move(args.note_expression_controller_args)),
|
||||||
YaNoteExpressionPhysicalUIMapping(
|
YaNoteExpressionPhysicalUIMapping(
|
||||||
std::move(args.note_expression_physical_ui_mapping_args)),
|
std::move(args.note_expression_physical_ui_mapping_args)),
|
||||||
|
YaParameterFunctionName(std::move(args.parameter_function_name_args)),
|
||||||
YaPluginBase(std::move(args.plugin_base_args)),
|
YaPluginBase(std::move(args.plugin_base_args)),
|
||||||
YaPrefetchableSupport(std::move(args.prefetchable_support_args)),
|
YaPrefetchableSupport(std::move(args.prefetchable_support_args)),
|
||||||
YaProcessContextRequirements(
|
YaProcessContextRequirements(
|
||||||
@@ -163,6 +165,10 @@ tresult PLUGIN_API Vst3PluginProxy::queryInterface(Steinberg::FIDString _iid,
|
|||||||
Steinberg::Vst::INoteExpressionPhysicalUIMapping::iid,
|
Steinberg::Vst::INoteExpressionPhysicalUIMapping::iid,
|
||||||
Steinberg::Vst::INoteExpressionPhysicalUIMapping)
|
Steinberg::Vst::INoteExpressionPhysicalUIMapping)
|
||||||
}
|
}
|
||||||
|
if (YaParameterFunctionName::supported()) {
|
||||||
|
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IParameterFunctionName::iid,
|
||||||
|
Steinberg::Vst::IParameterFunctionName)
|
||||||
|
}
|
||||||
if (YaPrefetchableSupport::supported()) {
|
if (YaPrefetchableSupport::supported()) {
|
||||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IPrefetchableSupport::iid,
|
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IPrefetchableSupport::iid,
|
||||||
Steinberg::Vst::IPrefetchableSupport)
|
Steinberg::Vst::IPrefetchableSupport)
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
#include "plugin/midi-mapping.h"
|
#include "plugin/midi-mapping.h"
|
||||||
#include "plugin/note-expression-controller.h"
|
#include "plugin/note-expression-controller.h"
|
||||||
#include "plugin/note-expression-physical-ui-mapping.h"
|
#include "plugin/note-expression-physical-ui-mapping.h"
|
||||||
|
#include "plugin/parameter-function-name.h"
|
||||||
#include "plugin/plugin-base.h"
|
#include "plugin/plugin-base.h"
|
||||||
#include "plugin/prefetchable-support.h"
|
#include "plugin/prefetchable-support.h"
|
||||||
#include "plugin/process-context-requirements.h"
|
#include "plugin/process-context-requirements.h"
|
||||||
@@ -81,6 +82,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
|||||||
public YaMidiMapping,
|
public YaMidiMapping,
|
||||||
public YaNoteExpressionController,
|
public YaNoteExpressionController,
|
||||||
public YaNoteExpressionPhysicalUIMapping,
|
public YaNoteExpressionPhysicalUIMapping,
|
||||||
|
public YaParameterFunctionName,
|
||||||
public YaPluginBase,
|
public YaPluginBase,
|
||||||
public YaPrefetchableSupport,
|
public YaPrefetchableSupport,
|
||||||
public YaProcessContextRequirements,
|
public YaProcessContextRequirements,
|
||||||
@@ -124,6 +126,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
|||||||
note_expression_controller_args;
|
note_expression_controller_args;
|
||||||
YaNoteExpressionPhysicalUIMapping::ConstructArgs
|
YaNoteExpressionPhysicalUIMapping::ConstructArgs
|
||||||
note_expression_physical_ui_mapping_args;
|
note_expression_physical_ui_mapping_args;
|
||||||
|
YaParameterFunctionName::ConstructArgs parameter_function_name_args;
|
||||||
YaPluginBase::ConstructArgs plugin_base_args;
|
YaPluginBase::ConstructArgs plugin_base_args;
|
||||||
YaPrefetchableSupport::ConstructArgs prefetchable_support_args;
|
YaPrefetchableSupport::ConstructArgs prefetchable_support_args;
|
||||||
YaProcessContextRequirements::ConstructArgs
|
YaProcessContextRequirements::ConstructArgs
|
||||||
@@ -151,6 +154,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
|||||||
s.object(midi_mapping_args);
|
s.object(midi_mapping_args);
|
||||||
s.object(note_expression_controller_args);
|
s.object(note_expression_controller_args);
|
||||||
s.object(note_expression_physical_ui_mapping_args);
|
s.object(note_expression_physical_ui_mapping_args);
|
||||||
|
s.object(parameter_function_name_args);
|
||||||
s.object(plugin_base_args);
|
s.object(plugin_base_args);
|
||||||
s.object(prefetchable_support_args);
|
s.object(prefetchable_support_args);
|
||||||
s.object(process_context_requirements_args);
|
s.object(process_context_requirements_args);
|
||||||
|
|||||||
@@ -688,6 +688,17 @@ tresult PLUGIN_API Vst3PluginProxyImpl::getPhysicalUIMapping(
|
|||||||
return response.result;
|
return response.result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
tresult PLUGIN_API Vst3PluginProxyImpl::initialize(FUnknown* context) {
|
tresult PLUGIN_API Vst3PluginProxyImpl::initialize(FUnknown* context) {
|
||||||
if (context) {
|
if (context) {
|
||||||
// We will create a proxy object that that supports all the same
|
// We will create a proxy object that that supports all the same
|
||||||
|
|||||||
@@ -203,6 +203,12 @@ class Vst3PluginProxyImpl : public Vst3PluginProxy {
|
|||||||
int16 channel,
|
int16 channel,
|
||||||
Steinberg::Vst::PhysicalUIMapList& list) override;
|
Steinberg::Vst::PhysicalUIMapList& list) override;
|
||||||
|
|
||||||
|
// From `IParameterFunctionName`
|
||||||
|
tresult PLUGIN_API
|
||||||
|
getParameterIDFromFunctionName(Steinberg::Vst::UnitID unitID,
|
||||||
|
Steinberg::FIDString functionName,
|
||||||
|
Steinberg::Vst::ParamID& paramID) override;
|
||||||
|
|
||||||
// From `IPluginBase`
|
// From `IPluginBase`
|
||||||
tresult PLUGIN_API initialize(FUnknown* context) override;
|
tresult PLUGIN_API initialize(FUnknown* context) override;
|
||||||
tresult PLUGIN_API terminate() override;
|
tresult PLUGIN_API terminate() override;
|
||||||
|
|||||||
Reference in New Issue
Block a user