Browse Source

Fix VST3 assertion condition on set_io_mode() (must be before "initialize")

From VST3 documentation on IComponent initialization https://steinbergmedia.github.io/vst3_dev_portal/pages/Technical+Documentation/API+Documentation/Index.html :

> Hosts should not call other functions before initialize is called, with
> the sole exception of Steinberg::Vst::IComponent::setIoMode which must
> be called before initialize.
pull/471/head
Atsushi Eno Filipe Coelho <falktx@falktx.com> 7 months ago
parent
commit
4cb04e606f
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      distrho/src/DistrhoPluginVST3.cpp

+ 2
- 1
distrho/src/DistrhoPluginVST3.cpp View File

@@ -4459,7 +4459,8 @@ struct dpf_component : v3_component_cpp {
dpf_component* const component = *static_cast<dpf_component**>(self);

PluginVst3* const vst3 = component->vst3;
DISTRHO_SAFE_ASSERT_RETURN(vst3 != nullptr, V3_NOT_INITIALIZED);
// It must be called *before* "initialize".
DISTRHO_SAFE_ASSERT_RETURN(vst3 == nullptr, V3_NOT_INITIALIZED);

// TODO
return V3_NOT_IMPLEMENTED;


Loading…
Cancel
Save