I am new to Juce and this forum, but the first impression is really good, i will use use Juce to plugin development mainly.
How do you send data non parameter data structures from the ui to the audio thread?
Is it possible to make the AudoProcessor both an ChangeListener and ChangeBroadcaster?
I could not figure out how to do this because editors can be created/destroyed at anytime so I didn’t know where to put addChangeListener and removeChangeListener?
Instead I am using a ReadWriteLock to allow both the audio and ui threads to read shared data simultaneously (enterRead/exitRead). The ui only have to block the audio thread when when something is changed (enterWrite/exitWrite).
Is it possible to do this without blocking the audio thread at all?