diff options
Diffstat (limited to 'gr-uhd/lib/usrp_source_impl.cc')
-rw-r--r-- | gr-uhd/lib/usrp_source_impl.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gr-uhd/lib/usrp_source_impl.cc b/gr-uhd/lib/usrp_source_impl.cc index c3b67533b5..b3eca9eb46 100644 --- a/gr-uhd/lib/usrp_source_impl.cc +++ b/gr-uhd/lib/usrp_source_impl.cc @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2010-2013 Free Software Foundation, Inc. + * Copyright 2010-2015 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -522,6 +522,17 @@ namespace gr { } void + usrp_source_impl::set_stream_args(const ::uhd::stream_args_t &stream_args) + { + _update_stream_args(stream_args); +#ifdef GR_UHD_USE_STREAM_API + _rx_stream.reset(); +#else + throw std::runtime_error("not implemented in this version"); +#endif + } + + void usrp_source_impl::set_start_time(const ::uhd::time_spec_t &time) { _start_time = time; |