Re: newbie trap



I In the portaudio callback, don't touch the gui at all.  Just
process the buffer and use variables to communicate with the gui thread.
IE, set the peak value, the position, time elapsed, etc in simple
variables.  Then in the main thread, use an idle timeout to monitor
these variables and update the gui accordingly.

From the portaudio thread you can fire a oneshot idle function. Idle
functions are run from the main gtk thread, and might be easier than
setting up an idle callback to constantly check variables.

iain



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]