The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
MHAFilter::resampling_filter_t Class Reference

Hann shaped low pass filter for resampling. More...

Inheritance diagram for MHAFilter::resampling_filter_t:
Inheritance graph

Public Member Functions

 resampling_filter_t (unsigned int fftlen, unsigned int irslen, unsigned int channels, unsigned int Nup, unsigned int Ndown, double fCutOff)
 Constructor. More...
 
- Public Member Functions inherited from MHAFilter::fftfilter_t
 fftfilter_t (unsigned int fragsize, unsigned int channels, unsigned int fftlen)
 Constructor. More...
 
 ~fftfilter_t ()
 
void update_coeffs (const mha_wave_t *pwIRS)
 Update the set of coefficients. More...
 
void filter (const mha_wave_t *pwIn, mha_wave_t **ppwOut, const mha_wave_t *pwIRS)
 Apply filter with changing coefficients to a waveform fragment. More...
 
void filter (const mha_wave_t *pwIn, mha_wave_t **ppwOut)
 Apply filter to waveform fragment, without changing the coefficients. More...
 
void filter (const mha_wave_t *pwIn, mha_wave_t **ppwOut, const mha_spec_t *psWeights)
 Apply filter with changing coefficients to a waveform fragment. More...
 

Static Public Member Functions

static unsigned int fragsize_validator (unsigned int fftlen, unsigned int irslen)
 

Private Attributes

unsigned int fragsize
 

Detailed Description

Hann shaped low pass filter for resampling.

This class uses FFT filter at upsampled rate.

Constructor & Destructor Documentation

◆ resampling_filter_t()

MHAFilter::resampling_filter_t::resampling_filter_t ( unsigned int  fftlen,
unsigned int  irslen,
unsigned int  channels,
unsigned int  Nup,
unsigned int  Ndown,
double  fCutOff 
)

Constructor.

Parameters
fftlenFFT length.
irslenLength of filter.
channelsNumber of channels to be filtered.
NupUpsampling ratio.
NdownDownsampling ratio.
fCutOffCut off frequency (relative to lower Nyquist Frequency)

Member Function Documentation

◆ fragsize_validator()

unsigned int MHAFilter::resampling_filter_t::fragsize_validator ( unsigned int  fftlen,
unsigned int  irslen 
)
static

Member Data Documentation

◆ fragsize

unsigned int MHAFilter::resampling_filter_t::fragsize
private

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