alsa: latency increases at every underrun
问题 I'm writing a tipical capture-process-playback loop. Capture using snd_pcm_readi() , some cheap audio process and then playback through snd_pcm_writei() . Single threaded. At 128 period size and 96000KHz I cannot perceive any latency. Good. Periodically I get a buffer underrun ( snd_pcm_writei() returns -EPIPE); It's ok, I'm running a regular Ubuntu 16.04 desktop not configured for low audio latency. After some underruns the latency becomes perceivable. I don't understand why. this is my