• borine's avatar
    input/plugins/Alsa: limit ALSA buffer time to 2 seconds maximum · 17d944f6
    borine authored
    Some ALSA capture devices can have very large buffers, holding 10
    seconds or more audio. Using the maximum buffer size with such
    devices leads to unacceptably large, and unnecessary, latency.
    Also, some ALSA drivers (e.g. HDA Intel PCH) report an invalid
    maximum period size, and the period size that mpd calculates from
    the maximum buffer size results in "Invalid argument" error when
    applying the hw_params. Note that the "default" capture device on
    many cards includes the "dsnoop" plugin which imposes a buffer
    size of 16384 frames, so that "alsa://" works OK but
    "alsa://plughw" or "alsa://hw" both fail.
    
    Limit the maximum buffer time for ALSA input devices to a more useable
    2 seconds, thereby avoiding both the above problems.
    17d944f6
Name
Last commit
Last update
.github Loading commit data...
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build Loading commit data...
src Loading commit data...
subprojects Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.clang-format 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...