RTL-SDR input: fixed sample rate slider range and add one more sample rate

pull/6/head v1.0.1
f4exb 2015-12-27 04:04:24 +01:00
rodzic 8f0af54fa0
commit 144462d57b
3 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -273,8 +273,8 @@ void RTLSDRGui::on_checkBox_stateChanged(int state)
sendSettings();
}
unsigned int RTLSDRSampleRates::m_rates[] = {250, 1000, 1152, 1536, 2304, 2400};
unsigned int RTLSDRSampleRates::m_nb_rates = 6;
unsigned int RTLSDRSampleRates::m_rates[] = {250, 1000, 1152, 1200, 1536, 2304, 2400};
unsigned int RTLSDRSampleRates::m_nb_rates = 7;
unsigned int RTLSDRSampleRates::getRate(unsigned int rate_index)
{

Wyświetl plik

@ -61,7 +61,7 @@ public:
static unsigned int getRate(unsigned int rate_index);
static unsigned int getRateIndex(unsigned int rate);
private:
static unsigned int m_rates[6];
static unsigned int m_rates[7];
static unsigned int m_nb_rates;
};

Wyświetl plik

@ -204,7 +204,7 @@
<string>Device Samplerate</string>
</property>
<property name="maximum">
<number>4</number>
<number>6</number>
</property>
<property name="pageStep">
<number>1</number>