summaryrefslogtreecommitdiffstats
path: root/src/dabInputZmq.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-19 18:40:41 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-01-19 18:40:41 +0100
commit72420013928a2d00855ed8ae9c42ac6e229a0b87 (patch)
tree4a6a513806b838b8929bebba572490f43775a1c2 /src/dabInputZmq.h
parentb25cc4973eb70833fa21481168e9291bc852904d (diff)
downloaddabmux-72420013928a2d00855ed8ae9c42ac6e229a0b87.tar.gz
dabmux-72420013928a2d00855ed8ae9c42ac6e229a0b87.tar.bz2
dabmux-72420013928a2d00855ed8ae9c42ac6e229a0b87.zip
change zmqInput buffering handling
Diffstat (limited to 'src/dabInputZmq.h')
-rw-r--r--src/dabInputZmq.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/dabInputZmq.h b/src/dabInputZmq.h
index 237209f..56708f9 100644
--- a/src/dabInputZmq.h
+++ b/src/dabInputZmq.h
@@ -49,11 +49,16 @@
#include "dabInputFifo.h"
#include "StatsServer.h"
-// Number of frames to prebuffer
-#define INPUT_ZMQ_PREBUFFERING 10
+/* The frame_buffer contains DAB logical frames as defined in
+ * TS 102 563, section 6.
+ * Five elements of this buffer make one AAC superframe (120ms audio)
+ */
+
+// Number of elements to prebuffer before starting the pipeline
+#define INPUT_ZMQ_PREBUFFERING (5*4) // 480ms
// Maximum frame_buffer size in number of elements
-#define INPUT_ZMQ_MAX_BUFFER_SIZE 200
+#define INPUT_ZMQ_MAX_BUFFER_SIZE (5*8) // 960ms
extern struct dabInputOperations dabInputZmqOperations;