Thanks. How do you communicate to the gui loop when it
should update
itself based on audio activity?
A very simple method if you can access the relevant data in a thread
safe manner is polling at gui rates (~10 Hz) driven by some kind of
cyclic timer.
HTH,
Luis