• Max Kellermann's avatar
    output/alsa: remove snd_pcm_state() check from DrainInternal() · 6c2a6a65
    Max Kellermann authored
    This check was added 9 years ago in commit
    4dc25d39 to work around a dmix bug
    which I assume has been fixed long ago.
    
    Removing this fixes another corner case: if draining is requested
    before the start threshold is reached, the PCM is still in
    SND_PCM_STATE_PREPARED but not yet SND_PCM_STATE_RUNNING, which means
    the submitted data will never be played.  This corner case is
    realistic when playing songs shorter than the ALSA buffer (if the
    buffer is very large).
    6c2a6a65
Name
Last commit
Last update
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build Loading commit data...
scripts Loading commit data...
src Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...