diff options
author | Andrej Rode <mail@andrejro.de> | 2018-03-19 23:32:52 +0100 |
---|---|---|
committer | Marcus Müller <marcus.mueller@ettus.com> | 2018-03-30 16:51:31 +0200 |
commit | 57a92af4e9f4b5eba42a00749b0936d06a2779b4 (patch) | |
tree | 5076bfc5f17d1627f73e3511897776fd85f41d19 /gr-analog/lib | |
parent | 5f455396abe7da2ec96300c7b1ee31748f138752 (diff) |
analog: improve fastnoise qa
Diffstat (limited to 'gr-analog/lib')
-rw-r--r-- | gr-analog/lib/fastnoise_source_X_impl.cc.t | 4 | ||||
-rw-r--r-- | gr-analog/lib/fastnoise_source_X_impl.h.t | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gr-analog/lib/fastnoise_source_X_impl.cc.t b/gr-analog/lib/fastnoise_source_X_impl.cc.t index 9283f11733..72c6cb0582 100644 --- a/gr-analog/lib/fastnoise_source_X_impl.cc.t +++ b/gr-analog/lib/fastnoise_source_X_impl.cc.t @@ -163,5 +163,9 @@ namespace gr { #endif } + const std::vector<@TYPE@>& @IMPL_NAME@::samples() const + { + return d_samples; + } } /* namespace analog */ } /* namespace gr */ diff --git a/gr-analog/lib/fastnoise_source_X_impl.h.t b/gr-analog/lib/fastnoise_source_X_impl.h.t index 5bea010e62..ef0465729d 100644 --- a/gr-analog/lib/fastnoise_source_X_impl.h.t +++ b/gr-analog/lib/fastnoise_source_X_impl.h.t @@ -50,6 +50,7 @@ namespace gr { void set_type(noise_type_t type); void set_amplitude(float ampl); void generate(); + const std::vector<@TYPE@>& samples() const; noise_type_t type() const { return d_type; } float amplitude() const { return d_ampl; } |