Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Thread Problems....

Status
Not open for further replies.

rdalton

Programmer
Dec 5, 2002
24
US
Hi,
I'm building a small audio application that uses multiple threads for audio processing and gui control. I have a slider bar that controls the play position in the audio file. The slider bar is incremented every second, and I have some text, displaying the time, that gets updated. The updating is done by UpdateData(). The problem is that the gui is being updated so frequently that any other redraw() calls (ie. Minimizing/Maximizing other windows, or scrolling in other windows) causes glitches in the audio playback. Does anyone know a good way to frequently update the gui data with out bogging down the system. Thanks.

Bob
 
So your playing the audio in a worker thread? Have you tried raising the priority of that thread?

-pete
 
Yes, the audio playback is done by a worker thread and it is given the highest priority. Is there any way to change the priority of the main thread (which handles GUI events)?

bob
 
I would think so did you try and get an error or something?

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top