From 3da9c5b7cf03bc81da334313bb4ecb4b5b69a8e1 Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 17 Nov 2016 00:41:11 +0100 Subject: [PATCH] SDRPlay plugin: new sample rates to better support non zero IF modes --- plugins/samplesource/sdrplay/sdrplaygui.cpp | 32 +++++++++++---------- plugins/samplesource/sdrplay/sdrplaygui.h | 2 +- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/plugins/samplesource/sdrplay/sdrplaygui.cpp b/plugins/samplesource/sdrplay/sdrplaygui.cpp index e8fc2da48..afee5202f 100644 --- a/plugins/samplesource/sdrplay/sdrplaygui.cpp +++ b/plugins/samplesource/sdrplay/sdrplaygui.cpp @@ -417,21 +417,23 @@ void SDRPlayGui::on_record_toggled(bool checked) unsigned int SDRPlaySampleRates::m_rates[m_nb_rates] = { 1536000, // 0 - 2000000, // 1 - 2048000, // 2 - 2304000, // 3 - 2400000, // 4 - 3072000, // 5 - 3200000, // 6 - 4000000, // 7 - 4096000, // 8 - 4608000, // 9 - 4800000, // 10 - 5000000, // 11 - 6000000, // 12 - 6144000, // 13 - 8000000, // 14 - 8192000, // 15 + 1800000, // 1 + 2000000, // 2 + 2048000, // 3 + 2304000, // 4 + 2400000, // 5 + 3072000, // 6 + 3200000, // 7 + 4000000, // 8 + 4096000, // 9 + 4608000, // 10 + 4800000, // 11 + 5000000, // 12 + 6000000, // 13 + 6144000, // 14 + 6480000, // 15 + 8000000, // 16 + 8192000, // 17 }; unsigned int SDRPlaySampleRates::getRate(unsigned int rate_index) diff --git a/plugins/samplesource/sdrplay/sdrplaygui.h b/plugins/samplesource/sdrplay/sdrplaygui.h index 9eade738d..fa008a018 100644 --- a/plugins/samplesource/sdrplay/sdrplaygui.h +++ b/plugins/samplesource/sdrplay/sdrplaygui.h @@ -98,7 +98,7 @@ public: static unsigned int getRateIndex(unsigned int rate); static unsigned int getNbRates(); private: - static const unsigned int m_nb_rates = 16; + static const unsigned int m_nb_rates = 18; static unsigned int m_rates[m_nb_rates]; };