News for hackers. Stuff that matters.
Re:Four common mistakes in audio development (2016) by rhizome on Sunday September 22, 2019 @05:42PM (#21044151)
Instead of outputting silence, you could output the same frequency spectrum as you were right before the event.

How does one detect whether it's a musical silence or a buffer underrun?

Re:Four common mistakes in audio development (2016) by nitrogen on Sunday September 22, 2019 @08:23PM (#21044970)
You'd probably do this at a layer where you have access to the buffer stats to know that the buffer is nearly empty.