aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-30 21:46:34 +0100
committerMax Kellermann <max@duempel.org>2013-10-30 21:46:40 +0100
commit54abeab80bff8e7d35a9fac6b1afdb64660df2e7 (patch)
tree23ebcd9f40651d6cebdf3869085e0ac39faa6bb9 /src
parent1dc8a9f0e7e37f543d3ddf807feb747a83987680 (diff)
downloadmpd-54abeab80bff8e7d35a9fac6b1afdb64660df2e7.tar.gz
mpd-54abeab80bff8e7d35a9fac6b1afdb64660df2e7.tar.xz
mpd-54abeab80bff8e7d35a9fac6b1afdb64660df2e7.zip
increase default buffer size to 4 MB
2 MB was too small for cross-fading a 24 bit file. Increasing to 4 MB is still not too large for weak machines, but is enough for cross-fading.
Diffstat (limited to 'src')
-rw-r--r--src/Main.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index f27de84ec..5d47c0a1c 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -94,7 +94,7 @@
#include <ws2tcpip.h>
#endif
-static constexpr unsigned DEFAULT_BUFFER_SIZE = 2048;
+static constexpr unsigned DEFAULT_BUFFER_SIZE = 4096;
static constexpr unsigned DEFAULT_BUFFER_BEFORE_PLAY = 10;
static constexpr Domain main_domain("main");