aboutsummaryrefslogtreecommitdiffstats
path: root/lib/osmosdr_sink_c_impl.cc
diff options
context:
space:
mode:
authorDimitri Stolnikov <horiz0n@gmx.net>2013-04-30 21:00:57 +0200
committerDimitri Stolnikov <horiz0n@gmx.net>2013-04-30 21:00:57 +0200
commit13477f279f94cd6749cee077b7c742f1cecc9378 (patch)
tree8dfb52fed3392676efa378a03dd9973b13fa6937 /lib/osmosdr_sink_c_impl.cc
parent7ed94c6242d281ca382d50573db768e0f9099f8d (diff)
source/sink: return freq_range_t in get_bandwidth_range()
it was meta_range_t (which is binary compatible) before.
Diffstat (limited to 'lib/osmosdr_sink_c_impl.cc')
-rw-r--r--lib/osmosdr_sink_c_impl.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/osmosdr_sink_c_impl.cc b/lib/osmosdr_sink_c_impl.cc
index 6152069..bd43fd4 100644
--- a/lib/osmosdr_sink_c_impl.cc
+++ b/lib/osmosdr_sink_c_impl.cc
@@ -180,15 +180,13 @@ size_t osmosdr_sink_c_impl::get_num_channels()
osmosdr::meta_range_t osmosdr_sink_c_impl::get_sample_rates()
{
- osmosdr::meta_range_t rates(0, 0, 0);
-
- if (!_devs.empty())
- rates = _devs[0]->get_sample_rates(); // assume same devices used in the group
+ if ( ! _devs.empty() )
+ return _devs[0]->get_sample_rates(); // assume same devices used in the group
#if 0
else
throw std::runtime_error(NO_DEVICES_MSG);
#endif
- return rates;
+ return osmosdr::meta_range_t();
}
double osmosdr_sink_c_impl::set_sample_rate(double rate)
@@ -490,7 +488,7 @@ double osmosdr_sink_c_impl::get_bandwidth( size_t chan )
return 0;
}
-osmosdr::meta_range_t osmosdr_sink_c_impl::get_bandwidth_range( size_t chan )
+osmosdr::freq_range_t osmosdr_sink_c_impl::get_bandwidth_range( size_t chan )
{
size_t channel = 0;
BOOST_FOREACH( osmosdr_snk_iface *dev, _devs )
@@ -498,5 +496,5 @@ osmosdr::meta_range_t osmosdr_sink_c_impl::get_bandwidth_range( size_t chan )
if ( chan == channel++ )
return dev->get_bandwidth_range( dev_chan );
- return osmosdr::meta_range_t();
+ return osmosdr::freq_range_t();
}