summaryrefslogtreecommitdiffstats
path: root/src/odr-audioenc.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-09 22:15:45 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-12-09 22:15:45 +0100
commita27ccc7a5521bc5bb881758dd6e7418da7e71c52 (patch)
tree1bdf79505dddfebd497273fd0881be7ccada0c84 /src/odr-audioenc.cpp
parent4ac410ce711dd02f9fa57c7d271d865ee40a086c (diff)
downloadODR-AudioEnc-a27ccc7a5521bc5bb881758dd6e7418da7e71c52.tar.gz
ODR-AudioEnc-a27ccc7a5521bc5bb881758dd6e7418da7e71c52.tar.bz2
ODR-AudioEnc-a27ccc7a5521bc5bb881758dd6e7418da7e71c52.zip
Increase max buffer size for drift compensation
Some audio codecs decode in a more bursty way than others, making permanent overrun-underrun events.
Diffstat (limited to 'src/odr-audioenc.cpp')
-rw-r--r--src/odr-audioenc.cpp2
1 files changed, 1 insertions, 1 deletions
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.