From 1eb3db0291f93e7ea6ca0ced6d7e4a3d0ab09dbe Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 12 Aug 2016 08:30:43 +0200 Subject: [PATCH] RTLSDR input: more sample rates (1024 and 2048) --- plugins/samplesource/rtlsdr/rtlsdrgui.cpp | 4 ++-- plugins/samplesource/rtlsdr/rtlsdrgui.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp index 82fbc5959..1664650ec 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.cpp +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.cpp @@ -400,8 +400,8 @@ void RTLSDRGui::on_checkBox_stateChanged(int state) sendSettings(); } -unsigned int RTLSDRSampleRates::m_rates[] = {250, 256, 1000, 1152, 1200, 1536, 1600, 2000, 2304, 2400}; -unsigned int RTLSDRSampleRates::m_nb_rates = 10; +unsigned int RTLSDRSampleRates::m_rates[] = {250, 256, 1000, 1024, 1152, 1200, 1536, 1600, 2000, 2048, 2304, 2400}; +unsigned int RTLSDRSampleRates::m_nb_rates = 12; unsigned int RTLSDRSampleRates::getRate(unsigned int rate_index) { diff --git a/plugins/samplesource/rtlsdr/rtlsdrgui.h b/plugins/samplesource/rtlsdr/rtlsdrgui.h index cc8d56abf..1beb6f07d 100644 --- a/plugins/samplesource/rtlsdr/rtlsdrgui.h +++ b/plugins/samplesource/rtlsdr/rtlsdrgui.h @@ -89,7 +89,7 @@ public: static unsigned int getRateIndex(unsigned int rate); static unsigned int getNbRates(); private: - static unsigned int m_rates[10]; + static unsigned int m_rates[12]; static unsigned int m_nb_rates; };