[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/09: added a gr-preferences getter
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/09: added a gr-preferences getter |
Date: |
Tue, 26 Apr 2016 00:41:04 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit 0465c4a543bf12e71c2c83b0f5ea865f6f81d5ca
Author: Marcus Müller <address@hidden>
Date: Thu Apr 14 14:37:52 2016 +0200
added a gr-preferences getter
---
gr-blocks/lib/udp_source_impl.cc | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gr-blocks/lib/udp_source_impl.cc b/gr-blocks/lib/udp_source_impl.cc
index b1977a8..5bd6883 100644
--- a/gr-blocks/lib/udp_source_impl.cc
+++ b/gr-blocks/lib/udp_source_impl.cc
@@ -27,6 +27,7 @@
#include "udp_source_impl.h"
#include <gnuradio/io_signature.h>
#include <gnuradio/math.h>
+#include <gnuradio/prefs.h>
#include <stdexcept>
#include <errno.h>
#include <stdio.h>
@@ -35,7 +36,8 @@
namespace gr {
namespace blocks {
- const int udp_source_impl::BUF_SIZE_PAYLOADS = 50;
+ const int udp_source_impl::BUF_SIZE_PAYLOADS =
+ gr::prefs::singleton()->get_long("udp_blocks", "buf_size_payloads",
50);
udp_source::sptr
udp_source::make(size_t itemsize,
- [Commit-gnuradio] [gnuradio] branch master updated (ece754f -> 6a33fff), git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 02/09: added a gr-preferences getter,
git <=
- [Commit-gnuradio] [gnuradio] 01/09: Merge pull request #1 from gnuradio/master, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 03/09: Completely refactored windows audio sink to use multiple buffers, eliminates skipping sounds when nperiods and period_time are set within reason. Default values should work fine for most. Set verbose=true to see additional info. output device can be set to either the ordinal number of the device to use, or the string name of the device. Setting a string in verbose mode will also display a list of choices in the console on run, git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 06/09: Merge remote-tracking branch 'gnieboer/windows_audio', git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 05/09: qtgui: added C++-only QTGUI application example., git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 07/09: Merge remote-tracking branch 'mmueller/udp_source_add_payload_buffer_gr_pref', git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 09/09: Merge remote-tracking branch 'tom/qtgui_c++_example', git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 04/09: qtgui: more appropriate doxygen link., git, 2016/04/25
- [Commit-gnuradio] [gnuradio] 08/09: Merge branch 'maint', git, 2016/04/25