I’m trying to teach myself VST programming (total beginner) and have been following https://docs.juce.com/master/tutorial_create_projucer_basic_plugin.html as a guide.
I have followed it nearly exactly - the steinberg SDK is correctly installed, the MIDI Input/output boxes are ticked, I haven’t changed any code yet - only difference is that I changed the windows target platform to 10.0.17134.0 from 10.0.16299.0, because I couldn’t figure out how to retarget my visual studio solution to an older version of the Windows SDK. This could be the problem?
Anyway, I hit a runtime error on line 360 of juce_AudioProcessor.cpp, inside AudioProcessor::setPlayConfigDetails:
success evals to true, newNumOuts == getTotalNumOutputChannels() == 2, that’s all correct. newNumIns however evaluates to 1, and getTotalNumInputChannels() == 2, hence failure. I’m not sure what to make of the comments here and in the definition, anyone know what these variables are for (and perhaps what setting to change in the projucer)?