1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 13:21:50 -05:00

SDRPlay plugin: new sample rates to better support non zero IF modes

This commit is contained in:
f4exb 2016-11-17 00:41:11 +01:00
parent 85807ffadb
commit 3da9c5b7cf
2 changed files with 18 additions and 16 deletions

View File

@ -417,21 +417,23 @@ void SDRPlayGui::on_record_toggled(bool checked)
unsigned int SDRPlaySampleRates::m_rates[m_nb_rates] = { unsigned int SDRPlaySampleRates::m_rates[m_nb_rates] = {
1536000, // 0 1536000, // 0
2000000, // 1 1800000, // 1
2048000, // 2 2000000, // 2
2304000, // 3 2048000, // 3
2400000, // 4 2304000, // 4
3072000, // 5 2400000, // 5
3200000, // 6 3072000, // 6
4000000, // 7 3200000, // 7
4096000, // 8 4000000, // 8
4608000, // 9 4096000, // 9
4800000, // 10 4608000, // 10
5000000, // 11 4800000, // 11
6000000, // 12 5000000, // 12
6144000, // 13 6000000, // 13
8000000, // 14 6144000, // 14
8192000, // 15 6480000, // 15
8000000, // 16
8192000, // 17
}; };
unsigned int SDRPlaySampleRates::getRate(unsigned int rate_index) unsigned int SDRPlaySampleRates::getRate(unsigned int rate_index)

View File

@ -98,7 +98,7 @@ public:
static unsigned int getRateIndex(unsigned int rate); static unsigned int getRateIndex(unsigned int rate);
static unsigned int getNbRates(); static unsigned int getNbRates();
private: 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]; static unsigned int m_rates[m_nb_rates];
}; };