Yeah, I understood that, but I lack a bit C++ knowledge to derive the Synthvoice Class properly into my own, SamplerVoice-alike, class that has the RenderNextBlock overridden… I tried and I’m having a nightmare with the private members of the SynthesizerVoice class that are needed in overridden RenderNextBlock…
I tried also just copying all the stuff in SamplerVoice and re-naming it to my own class named SamplerVoicePan, and it did the same trouble, SamplerSound’s private members couldn’t get access. 2 of those private variables are needed to run the renderNextBlock…
I understand that private cannot be accessed, but what’s the workaround? I know of getter or similar functions but without rewriting the API source to include getter methods, I don’t know how to get those variables to work… And I’d believe writing the source code is kinda wrong way to do it?
Edit: To define more clearly, errors are:
error C2248: ‘juce::SamplerSound::data’ : cannot access private member declared in class 'juce::SamplerSound’
error C2248: ‘juce::SamplerSound::length’ : cannot access private member declared in class ‘juce::SamplerSound’
Thanks for the effort!