Re:The Case of the Extra 40ms
by PaulDavisThe1st on Tuesday December 15, 2020 @12:16AM
(#25427271)
Here's a better generalization:
http://www.rossbencina.com/code/real-time-audio-programming-...
Or the other way: don't make your application timing critical if it does not have to be. As others point out the hardware provides a buffer and the app only fills in one frame in advance instead of filling the buffer completely when possible.
If your application is timing critical, and you aren't using things specifically desiged for time critical applications (like RTOS), then you should be doing as much low level implementation yourself as possible.