On Wed, Aug 11, 2021 at 12:52:22AM -0500, Abel Abraham Camarillo Ojeda wrote: > > I'm not on my machine right now but I have seen this related with the video > display. A lot of times I put music then go away, after some minutes my > monitor turns off the screen, if I come back and move the mouse just so the > screen turns on again I ear my audio jump. Sometimes it just stops and have > to stop/pause song in mpd. But not related directly to mpd, have seen it > with chrome/Firefox also. Will share dmesg later when I'm on my machine. >
Basically, the screen saver grabs the CPU for too long so the audio process can't make progress: it misses its deadline and the hardware plays a block of silence. If audio doesn't progress for too long, sndiod assumes there's a permanent error stops. There are few other code-paths, similar to the screen saver, that also may hurt audio, including freeing big amounts of memory (browsers do that).
