mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 20:10:13 +02:00
Split YaAudioProcessor from YaComponent
Now all that's left is splitting YaComponent into the IComponent bits and separate YaPluginMonlith that implements everything.
This commit is contained in:
@@ -22,8 +22,8 @@ YaComponent::ConstructArgs::ConstructArgs(
|
||||
Steinberg::IPtr<Steinberg::Vst::IComponent> component,
|
||||
size_t instance_id)
|
||||
: instance_id(instance_id),
|
||||
audio_processor_supported(
|
||||
Steinberg::FUnknownPtr<Steinberg::Vst::IAudioProcessor>(component)) {
|
||||
audio_processor_args(component),
|
||||
plugin_base_args(component) {
|
||||
// `IComponent::getControllerClassId`
|
||||
Steinberg::TUID cid;
|
||||
if (component->getControllerClassId(cid) == Steinberg::kResultOk) {
|
||||
@@ -32,7 +32,8 @@ YaComponent::ConstructArgs::ConstructArgs(
|
||||
}
|
||||
|
||||
YaComponent::YaComponent(const ConstructArgs&& args)
|
||||
: YaPluginBase(std::move(args.plugin_base_args)),
|
||||
: YaAudioProcessor(std::move(args.audio_processor_args)),
|
||||
YaPluginBase(std::move(args.plugin_base_args)),
|
||||
arguments(std::move(args)){FUNKNOWN_CTOR}
|
||||
|
||||
YaComponent::~YaComponent() {
|
||||
@@ -61,7 +62,7 @@ tresult PLUGIN_API YaComponent::queryInterface(Steinberg::FIDString _iid,
|
||||
}
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IComponent::iid,
|
||||
Steinberg::Vst::IComponent)
|
||||
if (arguments.audio_processor_supported) {
|
||||
if (YaAudioProcessor::supported()) {
|
||||
QUERY_INTERFACE(_iid, obj, Steinberg::Vst::IAudioProcessor::iid,
|
||||
Steinberg::Vst::IAudioProcessor)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user