aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-03-10 16:11:58 +0100
committerMax Kellermann <max@duempel.org>2009-03-10 16:11:58 +0100
commit3ef8cba274153d2fa426195561f03acb7f4a2f32 (patch)
treeabbc35e3cc37e00fa83776aa0f96e0d73c4af322 /src
parent79ef9166df2cf1c431e2bbbd4e19de3de7773324 (diff)
downloadmpd-3ef8cba274153d2fa426195561f03acb7f4a2f32.tar.gz
mpd-3ef8cba274153d2fa426195561f03acb7f4a2f32.tar.xz
mpd-3ef8cba274153d2fa426195561f03acb7f4a2f32.zip
music_chunk: increased chunk size to 4 kB
A larger chunk size means less overhead for managing them. 4 kB seems to be a reasonable choice: it contains 23 ms of 44.1 kHz 16 bit stereo data, or 3 ms of 192 kHz 24 bit stereo data. The original value of 1020 seemed to be too small, there were quite a lot of system calls and context switches.
Diffstat (limited to 'src')
-rw-r--r--src/chunk.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/chunk.h b/src/chunk.h
index 7d39ebdf7..755730767 100644
--- a/src/chunk.h
+++ b/src/chunk.h
@@ -28,8 +28,7 @@
#include <stddef.h>
enum {
- /* pick 1020 since its devisible for 8,16,24, and 32-bit audio */
- CHUNK_SIZE = 1020,
+ CHUNK_SIZE = 4096,
};
struct audio_format;