summaryrefslogtreecommitdiff
path: root/gnuradio-runtime/lib/flat_flowgraph.cc
diff options
context:
space:
mode:
authorkarel <5636152+karel@users.noreply.github.com>2021-02-16 14:16:35 +0200
committerMarcus Müller <marcus@hostalia.de>2021-02-18 09:38:13 +0100
commit04f8ea607d4ab4667ce657658916e3bbea8c5180 (patch)
treedd881410dd48abf5fa8fa44fb890dfe49ddc997e /gnuradio-runtime/lib/flat_flowgraph.cc
parentfa3267982aa88e3c8f886d803b57f9b1501f43f6 (diff)
gnuradio-runtime: configurable buffer size
Signed-off-by: karel <5636152+karel@users.noreply.github.com>
Diffstat (limited to 'gnuradio-runtime/lib/flat_flowgraph.cc')
-rw-r--r--gnuradio-runtime/lib/flat_flowgraph.cc3
1 files changed, 2 insertions, 1 deletions
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()
{