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:
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?
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…
C74 RSS Feed | © Copyright Cycling '74