• Max Kellermann's avatar
    output/alsa: fill period buffer with silence before draining · 54033c74
    Max Kellermann authored
    ALSA passes full period buffers to the hardware.  If an application
    doesn't finish writing a period, libasound will nonetheless send the
    partial buffer (with undefined trailing data).  This causes noise at
    the end of playback.  This patch attempts to track the current
    position within the period buffer, and generates silence at the end,
    before calling snd_pcm_drain().
    54033c74
alsa_plugin.c 15.2 KB