[vlc-commits] aout: coreaudio: increase low latency buffer size

Thomas Guillem git at videolan.org
Tue Sep 26 18:10:27 CEST 2017


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Sep 26 17:48:24 2017 +0200| [d58ca1ca7084b5ebd5836f6c7369ee66065da13a] | committer: Thomas Guillem

aout: coreaudio: increase low latency buffer size

See XXX comment. There is a lot of stuttering with few inputs/codecs with 40ms
of latency.

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

 modules/audio_output/coreaudio_common.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/audio_output/coreaudio_common.c b/modules/audio_output/coreaudio_common.c
index 6e78b07e1a..d2e846587a 100644
--- a/modules/audio_output/coreaudio_common.c
+++ b/modules/audio_output/coreaudio_common.c
@@ -239,8 +239,9 @@ ca_Initialize(audio_output_t *p_aout, const audio_sample_format_t *fmt,
                               / p_sys->i_frame_length;
     if (fmt->channel_type == AUDIO_CHANNEL_TYPE_AMBISONICS)
     {
-        /* low latency: 40 ms of buffering */
-        i_audiobuffer_size = i_audiobuffer_size / 25;
+        /* lower latency: 200 ms of buffering. XXX: Decrease when VLC's core
+         * can handle lower audio latency */
+        i_audiobuffer_size = i_audiobuffer_size / 5;
     }
     else
     {



More information about the vlc-commits mailing list