SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Static Public Member Functions | Static Private Attributes | List of all members
SDRPlaySampleRates Class Reference

#include <sdrplayinput.h>

Static Public Member Functions

static unsigned int getRate (unsigned int rate_index)
 
static unsigned int getRateIndex (unsigned int rate)
 
static unsigned int getNbRates ()
 

Static Private Attributes

static const unsigned int m_nb_rates = 18
 
static unsigned int m_rates [m_nb_rates]
 

Detailed Description

Definition at line 212 of file sdrplayinput.h.

Member Function Documentation

◆ getNbRates()

unsigned int SDRPlaySampleRates::getNbRates ( )
static

Definition at line 1022 of file sdrplayinput.cpp.

References SDRPlayBandwidths::m_bw, and m_nb_rates.

Referenced by SDRPlayGui::SDRPlayGui(), and SDRPlayInput::webapiFormatDeviceReport().

1023 {
1025 }
static const unsigned int m_nb_rates
Definition: sdrplayinput.h:218
+ Here is the caller graph for this function:

◆ getRate()

unsigned int SDRPlaySampleRates::getRate ( unsigned int  rate_index)
static

Definition at line 997 of file sdrplayinput.cpp.

Referenced by SDRPlayInput::applySettings(), SDRPlayInput::getSampleRate(), SDRPlayGui::SDRPlayGui(), SDRPlayInput::start(), and SDRPlayInput::webapiFormatDeviceReport().

998 {
999  if (rate_index < m_nb_rates)
1000  {
1001  return m_rates[rate_index];
1002  }
1003  else
1004  {
1005  return m_rates[0];
1006  }
1007 }
static unsigned int m_rates[m_nb_rates]
Definition: sdrplayinput.h:219
static const unsigned int m_nb_rates
Definition: sdrplayinput.h:218
+ Here is the caller graph for this function:

◆ getRateIndex()

unsigned int SDRPlaySampleRates::getRateIndex ( unsigned int  rate)
static

Definition at line 1009 of file sdrplayinput.cpp.

References i.

1010 {
1011  for (unsigned int i=0; i < m_nb_rates; i++)
1012  {
1013  if (rate == m_rates[i])
1014  {
1015  return i;
1016  }
1017  }
1018 
1019  return 0;
1020 }
static unsigned int m_rates[m_nb_rates]
Definition: sdrplayinput.h:219
int32_t i
Definition: decimators.h:244
static const unsigned int m_nb_rates
Definition: sdrplayinput.h:218

Member Data Documentation

◆ m_nb_rates

const unsigned int SDRPlaySampleRates::m_nb_rates = 18
staticprivate

Definition at line 218 of file sdrplayinput.h.

Referenced by getNbRates().

◆ m_rates

unsigned int SDRPlaySampleRates::m_rates
staticprivate
Initial value:
= {
1536000,
1792000,
2000000,
2048000,
2304000,
2400000,
3072000,
3200000,
4000000,
4096000,
4608000,
4800000,
5000000,
6000000,
6144000,
6400000,
8000000,
8192000,
}

Definition at line 219 of file sdrplayinput.h.

Referenced by SDRPlayInput::networkManagerFinished().


The documentation for this class was generated from the following files: