Do I need to Lock the UI thread when calling processBlock()?

Yeah, damned right you didn’t!

You should never lock ANYTHING in your process callback, not even a mutex! You’ll find many threads on this forum discussing lock-free fifos and other tricks for communicating back to your UI code from the audio thread.

1 Like