From 04f8ea607d4ab4667ce657658916e3bbea8c5180 Mon Sep 17 00:00:00 2001
From: karel <5636152+karel@users.noreply.github.com>
Date: Tue, 16 Feb 2021 14:16:35 +0200
Subject: gnuradio-runtime: configurable buffer size

Signed-off-by: karel <5636152+karel@users.noreply.github.com>
---
 gnuradio-runtime/lib/flat_flowgraph.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'gnuradio-runtime/lib/flat_flowgraph.cc')

diff --git a/gnuradio-runtime/lib/flat_flowgraph.cc b/gnuradio-runtime/lib/flat_flowgraph.cc
index 3fca8fc664..150b74fd6e 100644
--- a/gnuradio-runtime/lib/flat_flowgraph.cc
+++ b/gnuradio-runtime/lib/flat_flowgraph.cc
@@ -27,7 +27,8 @@ namespace gr {
 // 32Kbyte buffer size between blocks
 #define GR_FIXED_BUFFER_SIZE (32 * (1L << 10))
 
-static const unsigned int s_fixed_buffer_size = GR_FIXED_BUFFER_SIZE;
+static const unsigned int s_fixed_buffer_size =
+    prefs::singleton()->get_long("DEFAULT", "buffer_size", GR_FIXED_BUFFER_SIZE);
 
 flat_flowgraph_sptr make_flat_flowgraph()
 {
-- 
cgit v1.2.3