[vlc-commits] pulse: increase the target length in low latency mode

Adrien Maglo git at videolan.org
Mon Sep 18 15:32:36 CEST 2017


vlc | branch: master | Adrien Maglo <magsoft at videolan.org> | Mon Sep 18 15:29:19 2017 +0200| [7ce308c94d48337a81bfb7d5b7098faa99ad77e4] | committer: Thomas Guillem

pulse: increase the target length in low latency mode

This fixes audio glitches on some configuration.

Signed-off-by: Thomas Guillem <thomas at gllm.fr>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7ce308c94d48337a81bfb7d5b7098faa99ad77e4
---

 modules/audio_output/pulse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c
index be82ad7673..02c8aa5155 100644
--- a/modules/audio_output/pulse.c
+++ b/modules/audio_output/pulse.c
@@ -816,7 +816,7 @@ static int Start(audio_output_t *aout, audio_sample_format_t *restrict fmt)
         /* Setup low latency in order to quickly react to ambisonics
          * filters viewpoint changes. */
         flags |= PA_STREAM_ADJUST_LATENCY;
-        attr.tlength = pa_usec_to_bytes(2 * AOUT_MIN_PREPARE_TIME, &ss);
+        attr.tlength = pa_usec_to_bytes(3 * AOUT_MIN_PREPARE_TIME, &ss);
     }
 
     if (encoding != PA_ENCODING_PCM)



More information about the vlc-commits mailing list