I need to check if my plugin is being rendered offline for export. This check is on a sampler voice level, where I don’t think I should have a reference to the PluginProcessor.
Of course I can just set a field on a custom static state object (through SharedResourcePointer) inside of
PluginProcessor::prepareToPlay () and read that from my sampler’s voices, but I wonder - why isn’t this a static member of AudioProcessor? Or otherwise said - is there a situation where one PluginProcessorA instance is set to nonRealtime mode and another PluginProcessorA instance isn’t?
Thanks in advance for any responses.