JUCE
JUCE copied to clipboard
VST3 Client: Enforce that setActive is called before process
trafficstars
Opening some JUCE VST3s in FL Studio's patcher can cause crashes because process() may be called before setActive() (likely due to race condition in FL Studio).
This workaround adds an std::atomic<bool> flag which prevents process() from proceeding unless setActive() sets the flag to true.
Link to original issue: https://github.com/juce-framework/JUCE/issues/1193