Skip to content

Commit

Permalink
Fix AUv3 parameter tree not beign correct after state loading
Browse files Browse the repository at this point in the history
  • Loading branch information
jatinchowdhury18 committed Nov 18, 2022
1 parent cab0570 commit 8afa344
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/BYOD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ void BYOD::getStateInformation (MemoryBlock& destData)
void BYOD::setStateInformation (const void* data, int sizeInBytes)
{
stateManager->loadState (getXmlFromBinary (data, sizeInBytes).get());

if (wrapperType == WrapperType::wrapperType_AudioUnitv3)
{
// In the AUv3 we need to alert the hsot about parmaeter tree changes
// _after_ the host has finished loading the plugin state.
Timer::callAfterDelay (500, [this]
{
updateHostDisplay (ChangeDetails{}.withParameterInfoChanged (true));
});
}
}

// This creates new instances of the plugin
Expand Down

0 comments on commit 8afa344

Please sign in to comment.