systhread_setpriority for audio? how it maps to Windows multimedia priorities

    Jun 14 2013 | 2:05 pm
    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
    Would you share a suggestion or mapping I can use given the Max -32 -> 32 range?

    • Jun 15 2013 | 1:22 pm
      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...