Hi, I’m back looking for help again. I’ve got OwlSim building correctly, but when I try to load the .dll in my DAW (Reaper) I get a bad access in PluginProcessor.cpp trying to get the Patch Processor off the the StompBoxAudioProcessor instance. The call stack is as follows :
juce::ScopedPointer<PluginPatchProcessor>::operator PluginPatchProcessor()
StompBoxAudioProcessor::getPatchProcessor()
Patch::Patch()
SimpleDelayPatch::SimpleDelayPatch()
PatchRegistry::Register<SimpleDelayPatch>::construct()
PatchRegistry::create(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > & name)
StompBoxAudioProcessor::prepareToPlay(double sampleRate, int samplesPerBlock)
JuceVST3Component::preparePlugin(double sampleRate, int bufferSize)
JuceVST3Component::setupProcessing(Steinberg::Vst::ProcessSetup & newSetup)
When I set a breakpoint in the setPatch(std::string) in StompBoxAudioProcessor I can see the patch processor getting instantiated properly, so I’m a bit perplexed as to what’s going on.
Something else odd I’ve noticed : PatchRegistry::create(name) is getting called multiple times even though I only have a single patch registered
Thanks~