Four common mistakes in audio development (2016)
> Rendering live audio is quite demanding: the system has to deliver n seconds of audio data every n seconds to the audio hardware. If it doesn’t, the buffer runs dry, and the user hears a nasty glitch or crackle: that’s the hard transition from audio, to silence.<p>I think you can do better when a buffer runs dry. Instead of outputting silence, you could output the same frequency spectrum as you were right before the event. That way you will not hear any cracks or pops.<p>And of course you can fade out the effect when the buffer stays dry for more than a few seconds.<p>Obviously, you'd have to do some filtering when the audio continues because that too can introduce cracks.