mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Add stubs for IAutomationState
This commit is contained in:
@@ -24,6 +24,7 @@ Vst3PluginProxy::ConstructArgs::ConstructArgs(
|
||||
: instance_id(instance_id),
|
||||
audio_presentation_latency_args(object),
|
||||
audio_processor_args(object),
|
||||
automation_state_args(object),
|
||||
component_args(object),
|
||||
connection_point_args(object),
|
||||
edit_controller_args(object),
|
||||
@@ -42,6 +43,7 @@ Vst3PluginProxy::Vst3PluginProxy(const ConstructArgs&& args)
|
||||
: YaAudioPresentationLatency(
|
||||
std::move(args.audio_presentation_latency_args)),
|
||||
YaAudioProcessor(std::move(args.audio_processor_args)),
|
||||
YaAutomationState(std::move(args.automation_state_args)),
|
||||
YaComponent(std::move(args.component_args)),
|
||||
YaConnectionPoint(std::move(args.connection_point_args)),
|
||||
YaEditController(std::move(args.edit_controller_args)),
|
||||
@@ -98,6 +100,10 @@ tresult PLUGIN_API Vst3PluginProxy::queryInterface(Steinberg::FIDString _iid,
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IAudioProcessor::iid,
|
||||
Steinberg::Vst::IAudioProcessor)
|
||||
}
|
||||
if (YaAutomationState::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IAutomationState::iid,
|
||||
Steinberg::Vst::IAutomationState)
|
||||
}
|
||||
if (YaComponent::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IComponent::iid,
|
||||
Steinberg::Vst::IComponent)
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "../common.h"
|
||||
#include "plugin/audio-presentation-latency.h"
|
||||
#include "plugin/audio-processor.h"
|
||||
#include "plugin/automation-state.h"
|
||||
#include "plugin/component.h"
|
||||
#include "plugin/connection-point.h"
|
||||
#include "plugin/edit-controller-2.h"
|
||||
@@ -63,6 +64,7 @@
|
||||
*/
|
||||
class Vst3PluginProxy : public YaAudioPresentationLatency,
|
||||
public YaAudioProcessor,
|
||||
public YaAutomationState,
|
||||
public YaComponent,
|
||||
public YaConnectionPoint,
|
||||
public YaEditController,
|
||||
@@ -97,6 +99,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
||||
YaAudioPresentationLatency::ConstructArgs
|
||||
audio_presentation_latency_args;
|
||||
YaAudioProcessor::ConstructArgs audio_processor_args;
|
||||
YaAutomationState::ConstructArgs automation_state_args;
|
||||
YaComponent::ConstructArgs component_args;
|
||||
YaConnectionPoint::ConstructArgs connection_point_args;
|
||||
YaEditController::ConstructArgs edit_controller_args;
|
||||
@@ -119,6 +122,7 @@ class Vst3PluginProxy : public YaAudioPresentationLatency,
|
||||
s.value8b(instance_id);
|
||||
s.object(audio_presentation_latency_args);
|
||||
s.object(audio_processor_args);
|
||||
s.object(automation_state_args);
|
||||
s.object(component_args);
|
||||
s.object(connection_point_args);
|
||||
s.object(edit_controller_args);
|
||||
|
||||
@@ -64,7 +64,7 @@ class YaAutomationState : public Steinberg::Vst::IAutomationState {
|
||||
|
||||
inline bool supported() const { return arguments.supported; }
|
||||
|
||||
virtual tresult PLUGIN_API setAutomationState(int32 state) = 0;
|
||||
virtual tresult PLUGIN_API setAutomationState(int32 state) override = 0;
|
||||
|
||||
protected:
|
||||
ConstructArgs arguments;
|
||||
|
||||
@@ -156,6 +156,13 @@ uint32 PLUGIN_API Vst3PluginProxyImpl::getTailSamples() {
|
||||
YaAudioProcessor::GetTailSamples{.instance_id = instance_id()});
|
||||
}
|
||||
|
||||
tresult PLUGIN_API Vst3PluginProxyImpl::setAutomationState(int32 state) {
|
||||
// TODO: Implement
|
||||
bridge.logger.log(
|
||||
"TODO: Implyement IAutomationState::setAutomationState()");
|
||||
return Steinberg::kNotImplemented;
|
||||
}
|
||||
|
||||
tresult PLUGIN_API
|
||||
Vst3PluginProxyImpl::getControllerClassId(Steinberg::TUID classId) {
|
||||
if (classId) {
|
||||
|
||||
@@ -78,6 +78,9 @@ class Vst3PluginProxyImpl : public Vst3PluginProxy {
|
||||
tresult PLUGIN_API process(Steinberg::Vst::ProcessData& data) override;
|
||||
uint32 PLUGIN_API getTailSamples() override;
|
||||
|
||||
// From `IAutomationState`
|
||||
tresult PLUGIN_API setAutomationState(int32 state) override;
|
||||
|
||||
// From `IComponent`
|
||||
tresult PLUGIN_API getControllerClassId(Steinberg::TUID classId) override;
|
||||
tresult PLUGIN_API setIoMode(Steinberg::Vst::IoMode mode) override;
|
||||
|
||||
Reference in New Issue
Block a user