prepareToPlay and processBlock thread-safety

Good finding.

It was changed a few years ago because of some hosts,

It’s the chicken and the egg for those who want latency described by wall-clock.

I also assume it’s more severe with DOP since,
For traditional real-time plug-in, you set the latency once. later calls will be ignored…
if (latencySamples != newLatency)

It’s less of a problem. but with anything that re-creates the instance (DOP…) it’s easier to reproduce.