summaryrefslogtreecommitdiff
path: root/gnuradio-runtime
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
parentfa3267982aa88e3c8f886d803b57f9b1501f43f6 (diff)
gnuradio-runtime: configurable buffer size
Signed-off-by: karel <5636152+karel@users.noreply.github.com>
Diffstat (limited to 'gnuradio-runtime')
-rw-r--r--gnuradio-runtime/gnuradio-runtime.conf.in2
-rw-r--r--gnuradio-runtime/lib/flat_flowgraph.cc3
2 files changed, 4 insertions, 1 deletions
diff --git a/gnuradio-runtime/gnuradio-runtime.conf.in b/gnuradio-runtime/gnuradio-runtime.conf.in
index 6ac9d27783..ff23f1cb68 100644
--- a/gnuradio-runtime/gnuradio-runtime.conf.in
+++ b/gnuradio-runtime/gnuradio-runtime.conf.in
@@ -9,6 +9,8 @@ verbose = False
# the queue by popping messages from the front.
max_messages = 8192
+# Block output buffer size in bytes.
+#buffer_size = 32768
[LOG]
# Levels can be (case insensitive):
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()
{