Hi @juceteam
There seems to be a CriticalSection used inside a real time context in MPESynthesiserBase. As far as I can see it is used to synchronise changes of the sample rate with the rendering. To be honest, I don’t quite get why this is necessary. MPESynthesiserBase setCurrentSampleRate should most likely only be called in the prepare contexts so it will be automatically in sync with renderNextBlock contexts. If this lock serves a deeper usage, you might consider using a SpinLock instead?
Looking forward to hearing your opinion on that!
Best, Rincewind
