summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-04-05 16:35:01 +0200
committerJan Ekström <jeebjp@gmail.com>2018-04-15 23:11:33 +0300
commit17f58455b0c43673d07ba22bad1a4b08325280ca (patch)
treee4e22f76d2bb405ff5647f1d63237c25c82a23e5
parent401bd57d447268b56e24e945be9240353d862969 (diff)
downloadmpv-17f58455b0c43673d07ba22bad1a4b08325280ca.tar.bz2
mpv-17f58455b0c43673d07ba22bad1a4b08325280ca.tar.xz
ao_alsa: reduce requested buffer size
There is a dedicated thread for feeding audio to the ALSA API from a buffer with a larger size. There is little reason to have such a large device buffer.
-rw-r--r--audio/out/ao_alsa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/out/ao_alsa.c b/audio/out/ao_alsa.c
index 39a83c2c21..3562634848 100644
--- a/audio/out/ao_alsa.c
+++ b/audio/out/ao_alsa.c
@@ -82,8 +82,8 @@ static const struct m_sub_options ao_alsa_conf = {
.mixer_name = "Master",
.mixer_index = 0,
.ni = 0,
- .buffer_time = 250000,
- .frags = 16,
+ .buffer_time = 100000,
+ .frags = 4,
},
.size = sizeof(struct ao_alsa_opts),
};