From a27ccc7a5521bc5bb881758dd6e7418da7e71c52 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 9 Dec 2016 22:15:45 +0100 Subject: Increase max buffer size for drift compensation Some audio codecs decode in a more bursty way than others, making permanent overrun-underrun events. --- src/odr-audioenc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/odr-audioenc.cpp b/src/odr-audioenc.cpp index d0f95e5..40a2974 100644 --- a/src/odr-audioenc.cpp +++ b/src/odr-audioenc.cpp @@ -762,7 +762,7 @@ int main(int argc, char *argv[]) sample_rate / 8000 : sample_rate / 16000; - int max_size = 8*input_buf.size() + NUM_SAMPLES_PER_CALL; + int max_size = 32*input_buf.size() + NUM_SAMPLES_PER_CALL; /*! The SampleQueue \c queue is given to the inputs, so that they * can fill it. -- cgit v1.2.3