mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Add stubs for IMidiLearn
This commit is contained in:
@@ -32,6 +32,7 @@ Vst3PluginProxy::ConstructArgs::ConstructArgs(
|
||||
edit_controller_host_editing_args(object),
|
||||
info_listener_args(object),
|
||||
keyswitch_controller_args(object),
|
||||
midi_learn_args(object),
|
||||
midi_mapping_args(object),
|
||||
note_expression_controller_args(object),
|
||||
plugin_base_args(object),
|
||||
@@ -54,6 +55,7 @@ Vst3PluginProxy::Vst3PluginProxy(const ConstructArgs&& args)
|
||||
std::move(args.edit_controller_host_editing_args)),
|
||||
YaInfoListener(std::move(args.info_listener_args)),
|
||||
YaKeyswitchController(std::move(args.keyswitch_controller_args)),
|
||||
YaMidiLearn(std::move(args.midi_learn_args)),
|
||||
YaMidiMapping(std::move(args.midi_mapping_args)),
|
||||
YaNoteExpressionController(
|
||||
std::move(args.note_expression_controller_args)),
|
||||
@@ -140,6 +142,10 @@ tresult PLUGIN_API Vst3PluginProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IKeyswitchController::iid,
|
||||
Steinberg::Vst::IKeyswitchController)
|
||||
}
|
||||
if (YaMidiLearn::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IMidiLearn::iid,
|
||||
Steinberg::Vst::IMidiLearn)
|
||||
}
|
||||
if (YaMidiMapping::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IMidiMapping::iid,
|
||||
Steinberg::Vst::IMidiMapping)
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
#include "plugin/edit-controller.h"
|
||||
#include "plugin/info-listener.h"
|
||||
#include "plugin/keyswitch-controller.h"
|
||||
#include "plugin/midi-learn.h"
|
||||
#include "plugin/midi-mapping.h"
|
||||
#include "plugin/note-expression-controller.h"
|
||||
#include "plugin/note-expression-physical-ui-mapping.h"
|
||||
@@ -75,6 +76,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
||||
public YaEditControllerHostEditing,
|
||||
public YaInfoListener,
|
||||
public YaKeyswitchController,
|
||||
public YaMidiLearn,
|
||||
public YaMidiMapping,
|
||||
public YaNoteExpressionController,
|
||||
public YaNoteExpressionPhysicalUIMapping,
|
||||
@@ -114,6 +116,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
||||
edit_controller_host_editing_args;
|
||||
YaInfoListener::ConstructArgs info_listener_args;
|
||||
YaKeyswitchController::ConstructArgs keyswitch_controller_args;
|
||||
YaMidiLearn::ConstructArgs midi_learn_args;
|
||||
YaMidiMapping::ConstructArgs midi_mapping_args;
|
||||
YaNoteExpressionController::ConstructArgs
|
||||
note_expression_controller_args;
|
||||
@@ -140,6 +143,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
||||
s.object(edit_controller_host_editing_args);
|
||||
s.object(info_listener_args);
|
||||
s.object(keyswitch_controller_args);
|
||||
s.object(midi_learn_args);
|
||||
s.object(midi_mapping_args);
|
||||
s.object(note_expression_controller_args);
|
||||
s.object(note_expression_physical_ui_mapping_args);
|
||||
|
||||
@@ -562,6 +562,16 @@ tresult PLUGIN_API Vst3PluginProxyImpl::getKeyswitchInfo(
|
||||
return response.result;
|
||||
}
|
||||
|
||||
tresult PLUGIN_API Vst3PluginProxyImpl::onLiveMIDIControllerInput(
|
||||
int32 busIndex,
|
||||
int16 channel,
|
||||
Steinberg::Vst::CtrlNumber midiCC) {
|
||||
// TODO: Implement
|
||||
bridge.logger.log(
|
||||
"TODO: Implement IMidiLearn::onLiveMIDIControllerInput()");
|
||||
return Steinberg::kNotImplemented;
|
||||
}
|
||||
|
||||
tresult PLUGIN_API Vst3PluginProxyImpl::getMidiControllerAssignment(
|
||||
int32 busIndex,
|
||||
int16 channel,
|
||||
|
||||
@@ -163,6 +163,12 @@ class Vst3PluginProxyImpl : public Vst3PluginProxy {
|
||||
int32 keySwitchIndex,
|
||||
Steinberg::Vst::KeyswitchInfo& info /*out*/) override;
|
||||
|
||||
// From `IMidiLearn`
|
||||
tresult PLUGIN_API
|
||||
onLiveMIDIControllerInput(int32 busIndex,
|
||||
int16 channel,
|
||||
Steinberg::Vst::CtrlNumber midiCC) override;
|
||||
|
||||
// From `IMidiMapping`
|
||||
tresult PLUGIN_API
|
||||
getMidiControllerAssignment(int32 busIndex,
|
||||
|
||||
Reference in New Issue
Block a user