LMMS
Loading...
Searching...
No Matches
Resampler Class Reference

#include <resampler.h>

Public Member Functions

 Resampler (void) noexcept
 ~Resampler (void)
bool setup (unsigned int fs_inp, unsigned int fs_out, unsigned int nchan, unsigned int hlen)
bool setup (unsigned int fs_inp, unsigned int fs_out, unsigned int nchan, unsigned int hlen, double frel)
void clear (void)
bool reset (void) noexcept
int nchan (void) const noexcept
int filtlen (void) const noexcept
int inpsize (void) const noexcept
double inpdist (void) const noexcept
bool process (void)

Public Attributes

unsigned int inp_count
unsigned int out_count
float * inp_data
float * out_data
float ** inp_list
float ** out_list

Private Attributes

Resampler_table_table
unsigned int _nchan
unsigned int _inmax
unsigned int _index
unsigned int _nread
unsigned int _nzero
unsigned int _phase
unsigned int _pstep
float * _buff
void_dummy [8]

Constructor & Destructor Documentation

◆ Resampler()

Resampler::Resampler ( void )
noexcept

◆ ~Resampler()

Resampler::~Resampler ( void )

Member Function Documentation

◆ clear()

void Resampler::clear ( void )

◆ filtlen()

int Resampler::filtlen ( void ) const
inlinenoexcept

◆ inpdist()

double Resampler::inpdist ( void ) const
noexcept

◆ inpsize()

int Resampler::inpsize ( void ) const
noexcept

◆ nchan()

int Resampler::nchan ( void ) const
inlinenoexcept

◆ process()

bool Resampler::process ( void )

◆ reset()

bool Resampler::reset ( void )
noexcept

◆ setup() [1/2]

bool Resampler::setup ( unsigned int fs_inp,
unsigned int fs_out,
unsigned int nchan,
unsigned int hlen )

◆ setup() [2/2]

bool Resampler::setup ( unsigned int fs_inp,
unsigned int fs_out,
unsigned int nchan,
unsigned int hlen,
double frel )

Member Data Documentation

◆ _buff

float* Resampler::_buff
private

◆ _dummy

void* Resampler::_dummy[8]
private

◆ _index

unsigned int Resampler::_index
private

◆ _inmax

unsigned int Resampler::_inmax
private

◆ _nchan

unsigned int Resampler::_nchan
private

◆ _nread

unsigned int Resampler::_nread
private

◆ _nzero

unsigned int Resampler::_nzero
private

◆ _phase

unsigned int Resampler::_phase
private

◆ _pstep

unsigned int Resampler::_pstep
private

◆ _table

Resampler_table* Resampler::_table
private

◆ inp_count

unsigned int Resampler::inp_count

◆ inp_data

float* Resampler::inp_data

◆ inp_list

float** Resampler::inp_list

◆ out_count

unsigned int Resampler::out_count

◆ out_data

float* Resampler::out_data

◆ out_list

float** Resampler::out_list

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