Add IAudioProcessor instance to ComponentInstance

So we don't have to these expensive casts every time.
This commit is contained in:
Robbert van der Helm
2020-12-14 13:18:47 +01:00
parent e0dd4ab22d
commit e2ba9c13f1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ ComponentInstance::ComponentInstance() {}
ComponentInstance::ComponentInstance(
Steinberg::IPtr<Steinberg::Vst::IComponent> component)
: component(component) {}
: component(component), audio_processor(component) {}
Vst3Bridge::Vst3Bridge(MainContext& main_context,
std::string plugin_dll_path,
+1 -1
View File
@@ -49,7 +49,7 @@ struct ComponentInstance {
// All smart pointers below are created from `component`. They will be null
// pointers if `component` did not implement the interface.
// TODO: Implement things like `IConnectionPoint` and `IAudioProcessor`
Steinberg::FUnknownPtr<Steinberg::Vst::IAudioProcessor> audio_processor;
};
/**