Skip to content

Commit

Permalink
Merge pull request #753 from aaknitt/fix_sample_rate
Browse files Browse the repository at this point in the history
adjust Source sample rate to match SDR sample rate
  • Loading branch information
robotastic authored Jan 14, 2023
2 parents 3f036e0 + b36cb58 commit 4c84e25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trunk-recorder/source.cc
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ Source::Source(double c, double r, double e, std::string drv, std::string dev, C
BOOST_LOG_TRIVIAL(info) << "Setting sample rate to: " << FormatSamplingRate(rate);
osmo_src->set_sample_rate(rate);
actual_rate = osmo_src->get_sample_rate();
rate = round(actual_rate);
BOOST_LOG_TRIVIAL(info) << "Actual sample rate: " << FormatSamplingRate(actual_rate);
BOOST_LOG_TRIVIAL(info) << "Tuning to " << format_freq(center + error);
osmo_src->set_center_freq(center + error, 0);
Expand Down

0 comments on commit 4c84e25

Please sign in to comment.