• Max Kellermann's avatar
    player/Thread: calculate `buffered_before_play` based on a fixed duration · 5b2374b9
    Max Kellermann authored
    Previously, there was the setting `buffered_before_play` which
    specified a percentage of the audio buffer, defaulting to `10%`.  That
    was working well enough for quite some time, until high-quality audio
    formats became common.
    
    At 44.1 kHz, 16 bit stereo, MPD collected 2.3 seconds worth of data in
    the buffer before starting playback.  With the same default settings
    and 192 kHz, 24 bit stereo, that was only 0.27 seconds.
    
    Making this depend on the byte size only leads to high latency at low
    quality, and too little data at high quality.  The natural choice
    would be to use a duration instead of a byte size, which should give
    the same good experience with all audio formats.
    
    Since the `buffered_before_play` configuration setting was not
    understood well by users and caused more harm than good, this commit
    deprecates it.  It has now no effect.
    5b2374b9
Name
Last commit
Last update
android Loading commit data...
doc Loading commit data...
m4 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...
Makefile.am Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
autogen.sh Loading commit data...
configure.ac Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...