RE: Streaming WAVE audio

"Jon Watte" <[email protected]>
Newsgroups gmane.games.devel.windows
Message-ID <[email protected]>
> 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+



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Gamedevlists-windows mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gamedevlists-windows
Archives:
http://sourceforge.net/mailarchive/forum.php?forum_id=555
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.