diff options
author | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-05-26 13:00:44 +0200 |
---|---|---|
committer | Dimitri Stolnikov <horiz0n@gmx.net> | 2013-05-26 13:02:14 +0200 |
commit | 193fd0ad88f8b506785acaf8c5f92119db4e2a21 (patch) | |
tree | 31423e36eaa22e49608e912e02ae218f95069830 /lib | |
parent | 4c101ea44ccc4a0a7cb397305ef2abb369eb2170 (diff) |
osmosdr: remove deprecated device arguments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/osmosdr/osmosdr_src_c.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/lib/osmosdr/osmosdr_src_c.cc b/lib/osmosdr/osmosdr_src_c.cc index 261f06d..98ae080 100644 --- a/lib/osmosdr/osmosdr_src_c.cc +++ b/lib/osmosdr/osmosdr_src_c.cc @@ -74,26 +74,13 @@ osmosdr_src_c::osmosdr_src_c (const std::string &args) _skipped(0) { int ret; - unsigned int dev_index = 0, mcr = 0; - size_t nchan = 1; + unsigned int dev_index = 0; dict_t dict = params_to_dict(args); if (dict.count("osmosdr")) dev_index = boost::lexical_cast< unsigned int >( dict["osmosdr"] ); - if (dict.count("mcr")) - mcr = (unsigned int) boost::lexical_cast< double >( dict["mcr"] ); - - if (mcr != 0) - throw std::runtime_error("FIXME: Setting the MCR is not supported."); - - if (dict.count("nchan")) - nchan = boost::lexical_cast< size_t >( dict["nchan"] ); - - if (nchan != 1) - throw std::runtime_error("FIXME: Values of nchan != 1 are not supported."); - _buf_num = _buf_len = _buf_head = _buf_used = _buf_offset = 0; if (dict.count("buffers")) |