I made a plugin that does the job on MacOSX environment.
I would like now to compile it on Windows.
I thought it was, not quick, but feasible, and I realize now that the journey is long and complicated.
More precisely, I am stuck on a memory access error.
I tried to debug with Visual Studio 2019 that load the Audio Plugin Host.
I can’t figure out why this doesn’t work.
PluginProcessor.cpp, I use the
processBlock(...) function inside a loop to compute each sample of a buffer (I get that from the audio plugin 2 tutorial).
In this loop I’ve got something like:
next_sample_value = my_midi_handler -> my_Synth -> compute_next_sample()
The code break in the
When I try to debug it with Visual Studio, the weird thing is that I’ve got good parameters values for my_Synth inside the processBlock function, but when I step into the
compute_next_sample() function, the parameter values have changed.
And so it rise an exception for memory access violation (it tries to access values in a array, but the index value (that changed…) is now out of the range of the array).
Any idea how I can debug that?
It is really frustrating, as this code was working on MacOSX… thanks a lot for your answer!