From 9a997551a2b8aa8642eae242e0651fde11b51508 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sat, 8 Oct 2016 21:40:49 +0200 Subject: [PATCH] [pulseaudio] Remove PA_STREAM_ADJUST_LATENCY - seems we then get a better match with the requested value --- src/outputs/pulse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/outputs/pulse.c b/src/outputs/pulse.c index 14099a2d..ae7a4a67 100644 --- a/src/outputs/pulse.c +++ b/src/outputs/pulse.c @@ -590,9 +590,9 @@ stream_open(struct pulse_session *ps, pa_stream_notify_cb_t cb) pa_stream_set_state_callback(ps->stream, cb, ps); - flags = PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_ADJUST_LATENCY | PA_STREAM_AUTO_TIMING_UPDATE; + flags = PA_STREAM_INTERPOLATE_TIMING | PA_STREAM_AUTO_TIMING_UPDATE; - ps->attr.tlength = STOB(2 * ss.rate - offset); // 2 second latency + ps->attr.tlength = STOB(2 * ss.rate + AIRTUNES_V2_PACKET_SAMPLES - offset); // 2 second latency ps->attr.maxlength = 2 * ps->attr.tlength; ps->attr.prebuf = (uint32_t)-1; ps->attr.minreq = (uint32_t)-1;