Skip to content

Commit

Permalink
Fix VST3 assertion condition on set_io_mode() (must be before "initia…
Browse files Browse the repository at this point in the history
…lize")

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.
  • Loading branch information
atsushieno authored and falkTX committed Sep 29, 2024
1 parent eafbf5b commit 4cb04e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion distrho/src/DistrhoPluginVST3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cb04e6

Please sign in to comment.