SoDaRadio-5.0.3-master:8901fb5
Public Member Functions | Private Attributes | List of all members
SoDa::ReSample48to625 Class Reference

Resampler for 48KHz to 625KHz data stream, built on rational ReSampler class. More...

#include <ReSamplers625x48.hxx>

Inheritance diagram for SoDa::ReSample48to625:
SoDa::SoDaBase

Public Member Functions

 ReSample48to625 (unsigned int inbufsize, float gain=1.0)
 Constructor. More...
 
 ~ReSample48to625 ()
 
void apply (std::complex< float > *in, std::complex< float > *out)
 Perform the resampling on a complex float buffer. More...
 
void apply (float *in, float *out)
 Perform the resampling on a real float buffer. More...
 
- Public Member Functions inherited from SoDa::SoDaBase
 SoDaBase (const std::string &oname)
 The constructor – pass a name for the object. More...
 
std::string & getObjName ()
 get the name of this object More...
 
SoDaBasefindSoDaObject (const std::string &oname)
 find a SoDa Object by name. More...
 
double getTime ()
 Get a time stamp in nS resolution that monotonically increases and that is very inexpensive (typically < 100nS). More...
 

Private Attributes

unsigned int N
 
unsigned int MN
 
SoDa::ReSamplerrs54a
 
SoDa::ReSamplerrs54b
 
SoDa::ReSamplerrs53
 
SoDa::ReSamplerrs51
 
std::complex< float > * inter1
 
std::complex< float > * inter2
 
float * finter1
 
float * finter2
 
float gain
 the gain to be applied to the final transform result. More...
 

Detailed Description

Resampler for 48KHz to 625KHz data stream, built on rational ReSampler class.

Definition at line 42 of file ReSamplers625x48.hxx.

Constructor & Destructor Documentation

◆ ReSample48to625()

SoDa::ReSample48to625::ReSample48to625 ( unsigned int  inbufsize,
float  gain = 1.0 
)

Constructor.

Parameters
inbufsizethe size of the input buffer, output buffer will be 625 * inbufsize / 48
gainmultiply output by gain factor

Definition at line 37 of file ReSamplers625x48.cxx.

References finter1, finter2, gain, inter1, inter2, MN, N, rs51, rs53, rs54a, and rs54b.

◆ ~ReSample48to625()

SoDa::ReSample48to625::~ReSample48to625 ( )

Definition at line 73 of file ReSamplers625x48.cxx.

References rs51, rs53, rs54a, and rs54b.

Member Function Documentation

◆ apply() [1/2]

void SoDa::ReSample48to625::apply ( std::complex< float > *  in,
std::complex< float > *  out 
)

Perform the resampling on a complex float buffer.

Parameters
ininput buffer
outoutput buffer

Definition at line 82 of file ReSamplers625x48.cxx.

References SoDa::ReSampler::apply(), gain, inter1, inter2, rs51, rs53, rs54a, and rs54b.

Referenced by SoDa::BaseBandTX::modulateAM(), and SoDa::BaseBandTX::modulateFM().

◆ apply() [2/2]

void SoDa::ReSample48to625::apply ( float *  in,
float *  out 
)

Perform the resampling on a real float buffer.

Parameters
ininput buffer
outoutput buffer

Definition at line 90 of file ReSamplers625x48.cxx.

References SoDa::ReSampler::apply(), finter1, finter2, gain, rs51, rs53, rs54a, and rs54b.

Member Data Documentation

◆ finter1

float* SoDa::ReSample48to625::finter1
private

Definition at line 73 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample48to625().

◆ finter2

float * SoDa::ReSample48to625::finter2
private

Definition at line 73 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample48to625().

◆ gain

float SoDa::ReSample48to625::gain
private

the gain to be applied to the final transform result.

Definition at line 75 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample48to625().

◆ inter1

std::complex<float>* SoDa::ReSample48to625::inter1
private

Definition at line 72 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample48to625().

◆ inter2

std::complex<float> * SoDa::ReSample48to625::inter2
private

Definition at line 72 of file ReSamplers625x48.hxx.

Referenced by apply(), and ReSample48to625().

◆ MN

unsigned int SoDa::ReSample48to625::MN
private

Definition at line 66 of file ReSamplers625x48.hxx.

Referenced by ReSample48to625().

◆ N

unsigned int SoDa::ReSample48to625::N
private

Definition at line 66 of file ReSamplers625x48.hxx.

Referenced by ReSample48to625().

◆ rs51

SoDa::ReSampler * SoDa::ReSample48to625::rs51
private

Definition at line 69 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample48to625(), and ~ReSample48to625().

◆ rs53

SoDa::ReSampler * SoDa::ReSample48to625::rs53
private

Definition at line 69 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample48to625(), and ~ReSample48to625().

◆ rs54a

SoDa::ReSampler* SoDa::ReSample48to625::rs54a
private

Definition at line 69 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample48to625(), and ~ReSample48to625().

◆ rs54b

SoDa::ReSampler * SoDa::ReSample48to625::rs54b
private

Definition at line 69 of file ReSamplers625x48.hxx.

Referenced by apply(), ReSample48to625(), and ~ReSample48to625().


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