nope not at all! (wouldn’t even know how to do that to be honest )
No const casting or anything, just using the intended functions ( I think, beginner here so I might be doing nasty stuff without knowing!)
it’s hard to post a code snippet right now since there are many classes involved.
Each of my “child processors” has a pointer to an input/output buffer channel ( I use .getWritePointer(channel) here)
in my main getNextAudioBlock() in pseudo code it looks something like:
for every child:
process ( copy from input with gain into myOutputBuffer)
copy myOutputBuffer to bufferToFill
the process of a child looks like this :
for(auto samp = 0; samp < numSamples; ++samp)
outBuffer[samp] = inBuffer[samp] * gain.getNextValue();
where outBuffer and inBuffer are pointers retrieved by .getWritePointer() like mentioned earlier ( Although I don’t really do anything to inBuffer so I guess I could use .getReadPointer here)
If I try to check the outputBuffer after child processing (for example .getMagnitude() ) the flag is true although it is filled and I hear my inputs with gain, everything working fine.
I think it has something to do with the order of steps, clearing it and letting the children work on it via their pointers then?
I might be able to extract the interesting code snippets later on, so an expert can have a look.
I assume that I do something bad, but it’s still weird.