Skip to content

Commit

Permalink
fix: IMIDIMapping wasn't used correctly in VST3 wrapper, init order w…
Browse files Browse the repository at this point in the history
…as wrong
  • Loading branch information
defiantnerd committed Feb 18, 2024
1 parent ae1841a commit 3ea56d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ option(CLAP_WRAPPER_WINDOWS_SINGLE_FILE "Build a single fine (rather than folder

project(clap-wrapper
LANGUAGES C CXX
VERSION 0.7.0
VERSION 0.7.1
DESCRIPTION "CLAP-as-X wrappers"
)

Expand Down
5 changes: 4 additions & 1 deletion src/clap_proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ void Plugin::schnick()

bool Plugin::initialize()
{
// first check for specifics, so they are present in the
// setup of busses
_parentHost->setupWrapperSpecifics(_plugin);

if (_ext._audioports)
{
_parentHost->setupAudioBusses(_plugin, _ext._audioports);
Expand All @@ -248,7 +252,6 @@ bool Plugin::initialize()
_parentHost->setupParameters(_plugin, _ext._params);
}

_parentHost->setupWrapperSpecifics(_plugin);
return true;
}

Expand Down
6 changes: 2 additions & 4 deletions src/wrapasvst3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ tresult PLUGIN_API ClapAsVst3::initialize(FUnknown* context)
_plugin = Clap::Plugin::createInstance(*_library, _libraryIndex, this);
}
result = (_plugin->initialize()) ? kResultOk : kResultFalse;
if (result)
{
_useIMidiMapping = checkMIDIDialectSupport();
}
}

return result;
Expand Down Expand Up @@ -488,6 +484,8 @@ Vst::UnitID ClapAsVst3::getOrCreateUnitInfo(const char* modulename)

void ClapAsVst3::setupWrapperSpecifics(const clap_plugin_t* plugin)
{
_useIMidiMapping = checkMIDIDialectSupport();

_vst3specifics = (clap_plugin_as_vst3_t*)plugin->get_extension(plugin, CLAP_PLUGIN_AS_VST3);
if (_vst3specifics)
{
Expand Down

0 comments on commit 3ea56d9

Please sign in to comment.