[wdmaudiodev] Re: Creating threads with high priority in APO

  • From: Dadi <dadiku@xxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Wed, 17 Dec 2014 22:58:56 +0200

Hi Matthew,

Thank you, we will try it.

Dadi


2014-12-17 22:51 GMT+02:00 Matthew van Eerde <
Matthew.van.Eerde@xxxxxxxxxxxxx>:

>  Have the new thread register with the Multimedia Class Scheduler
> Service. This is the same thing that AudioDG.exe does for the APOProcess(…)
> thread.
>
>
>
>
> http://msdn.microsoft.com/en-us/library/windows/desktop/ms684247(v=vs.85).aspx
>
>
>
> MMCSS will give the thread regular boosts to high priority at periodic
> intervals.
>
>
>
> *From:* wdmaudiodev-bounce@xxxxxxxxxxxxx [mailto:
> wdmaudiodev-bounce@xxxxxxxxxxxxx] *On Behalf Of *Dadi
> *Sent:* Wednesday, December 17, 2014 12:45 PM
> *To:* wdmaudiodev@xxxxxxxxxxxxx
> *Subject:* [wdmaudiodev] Creating threads with high priority in APO
>
>
>
> Hi,
>
> We are trying to improve our APO processing performance by creating
> additional threads and then do parallel processing for some of our effects.
> However we found that the highest priority we can have for new threads we
> created (using CreateThread) is base priority 15 while the base priority of
> the main processing thread is 22.
>
> Unfortunately we cannot use the new threads if they will not have priority
> at least as the main processing thread, we cannot gain any benefit from
> them this way so we need to create threads with priority 22 or more.
>
> How can this be achieved?
>
> Thanks,
> Dadi
>

Other related posts: