mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Add IAudioProcessor instance to ComponentInstance
So we don't have to these expensive casts every time.
This commit is contained in:
@@ -26,7 +26,7 @@ ComponentInstance::ComponentInstance() {}
|
|||||||
|
|
||||||
ComponentInstance::ComponentInstance(
|
ComponentInstance::ComponentInstance(
|
||||||
Steinberg::IPtr<Steinberg::Vst::IComponent> component)
|
Steinberg::IPtr<Steinberg::Vst::IComponent> component)
|
||||||
: component(component) {}
|
: component(component), audio_processor(component) {}
|
||||||
|
|
||||||
Vst3Bridge::Vst3Bridge(MainContext& main_context,
|
Vst3Bridge::Vst3Bridge(MainContext& main_context,
|
||||||
std::string plugin_dll_path,
|
std::string plugin_dll_path,
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ struct ComponentInstance {
|
|||||||
// All smart pointers below are created from `component`. They will be null
|
// All smart pointers below are created from `component`. They will be null
|
||||||
// pointers if `component` did not implement the interface.
|
// pointers if `component` did not implement the interface.
|
||||||
|
|
||||||
// TODO: Implement things like `IConnectionPoint` and `IAudioProcessor`
|
Steinberg::FUnknownPtr<Steinberg::Vst::IAudioProcessor> audio_processor;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user