systhread_setpriority for audio? how it maps to Windows multimedia priorities

Jun 14, 2013 at 7:05am

systhread_setpriority for audio? how it maps to Windows multimedia priorities

Hi. In my upcoming dp.kinect object, I spawn a separate thread with systhread_create to do some work on a stream of audio data that I get using an API outside the Max world. Rather than leaving the thread at 0, I think I should bump it up a little.

Sample code from the other API uses the Windows Multimedia Class Scheduler Service API like this:
AvSetMmThreadCharacteristics(L”Audio”, &mmTaskIndex)
that call looks into the registry at: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile\Tasks\Audio

and then applies the priority settings as doc’d at http://msdn.microsoft.com/en-us/library/ms684247(v=vs.85).aspx

Would you share a suggestion or mapping I can use given the Max -32 -> 32 range?

#252743
Jun 15, 2013 at 6:22am

Hi.

Whenever I tried to change the priority of a thread through systhread_setpriority, I never obtained any measurable effect – not even with extreme settings. Eventually I gave up.

that being said, I’d love to know if you or others have succeeded – maybe I just did some mistake.

otoh I’m on a Mac, maybe things are different on Win…

aa

#252841

You must be logged in to reply to this topic.