• Max Kellermann's avatar
    output/alsa: drain the whole `ring_buffer`, not just one period · 436ba3c9
    Max Kellermann authored
    This fixes a problem which caused a failure with snd_pcm_writei()
    because snd_pcm_drain() had already been called in the previous
    iteration.  This commit makes sure that snd_pcm_drain() is only called
    after the final snd_pcm_writei() call.
    
    This fixes discarded samples at the end of playback.
    436ba3c9
AlsaOutputPlugin.cxx 23.8 KB