diff options
author | karel <5636152+karel@users.noreply.github.com> | 2021-02-16 14:16:35 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2021-02-18 09:38:13 +0100 |
commit | 04f8ea607d4ab4667ce657658916e3bbea8c5180 (patch) | |
tree | dd881410dd48abf5fa8fa44fb890dfe49ddc997e | |
parent | fa3267982aa88e3c8f886d803b57f9b1501f43f6 (diff) |
gnuradio-runtime: configurable buffer size
Signed-off-by: karel <5636152+karel@users.noreply.github.com>
-rw-r--r-- | gnuradio-runtime/gnuradio-runtime.conf.in | 2 | ||||
-rw-r--r-- | gnuradio-runtime/lib/flat_flowgraph.cc | 3 |
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() { |