Is IComponent::getState()/setState() thread-safe?

If you look again on my example, the memory allocations are all done outside the audio thread. I’ve not checked your code, but if you do allocations on the audio thread there then its your implementation you need to change.

Cheers,
Arne