I have an application that feeds audio data to a FTDI device via the D2XX interface. It works perfectly while my application has focus, and uses very little CPU (5%). But when I hammer the CPU (by switching to other applications, or heavy drawing) sometimes I can produce a stutter in the audio.
I tried many things to prevent this (Process/Thread priorities to real-time, MMCSS scheduling, etc), but it still occurs sometimes.
Is there any other way left to raise priorities, or is it impossible without writing a kernel driver?