RE: [GD-Windows] Streaming WAVE audio
Brought to you by:
vexxed72
From: Jon W. <hp...@mi...> - 2004-07-14 21:30:54
|
> I don't change the process priority, I just set the thread priority of > the audio thread to HIGHEST (not real time) -- is there a particular > advantage to altering the process priority as well/first? I really recommend time critical priority for audio threads -- that's what that priority is for! If you get a permission error, then fall back to HIGHEST. SetPriorityClass() is what bumps up the priority for your process in general. I wouldn't set the process class to real time priority, though, that might have bad effects on the rest of the system :-) HIGH or ABOVE_NORMAL are the values you can play with here. ABOVE_NORMAL doesn't exist on DOS based Windows. The full table of class + priority mapping to actual thread priorities as used by the scheduler is found here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/bas e/scheduling_priorities.asp It's too bad that you can't make a single thread real time without making the entire process real time, so TIME_CRITICAL is as good as it gets. Cheers, / h+ |