OS: Mac OS X El Capitan
Plugin Type: VST (though problem was replicated in AU format)
Stack Trace available: no (can’t get XCode 7 to cooperate with me on this)
Juce Version: 4.2.3
Brief Description of Problem:
Amplitube will only load into the AudioProcessorGraph once. After being deconstructed, if you try to reload it again, you receive an error box saying the VST-2 failed to load. Amplitube is the only plugin that exhibits this behavior. All others I try work reliably.
Detailed Description of Problem:
At this point, I’ve been able to pin the problem to be revolving around the effect variable in the file VSTPluginFormat.cpp. If you look in the VSTPluginInstance constructor, then of course you will see that the effect variable is set by the macro JUCE_VST_WRAPPER_INVOKE_MAIN. Unfortunately, on the second loading of Amplitube, the effect variable remains a nullptr. I’ve tested the ModuleHandle for any discrepancies in Amplitube’s loading information but everything remains consistent that I can tell unless there is something I’m missing.
The Big Question:
What could possibly be going on that would make effect remain a nullptr on subsequent loadings of Amplitube? Are there any details that Amplitube may be fiddling with such as _fpreset()?
Why it matters:
I’m building a separate plugin host tailored for guitarists’ needs. Amplitube support is a high priority.