It seems that setCurrentProgram() is to handle program changes from the DAW.
How should changes from the AudioProcessorEditor be promoted to the DAW?
updateHostDisplay() seems a bit too heavy to notify about simple program changes as the AudioProcessor expets that anything could have changed, consequently it tears down streaming, stops and resumes audio processing.
This is probably kind of OK for native plugins, but for DSP based plugins this is catastrophic!
Initiating the whole DSP setup, with large coeff pages, etc. might take a noticible time. Glitch free audio processing is not achiviabale, because the DSP is disconected and another audio route is created, previous memory, i.e. delay lines is also not accesible anymore (though its arguable if keeping delay lines, etc. is desired at all). But it simply takes to mutch time for automation.
What would be the right way to notifiy the DAW that the program has changed?
Thanks and cheers,