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

Public Member Functions

 fftfilter_t (const MHAParser::mfloat_t &irs, const unsigned int &fragsize, const unsigned int &channels, const unsigned int &fftlen)
 Initialization of new run-time configuration from channel-specific impulse responses. More...
 
mha_wave_tprocess (mha_wave_t *)
 

Private Attributes

unsigned int irslen
 Length of the longest impulse response applied. More...
 
unsigned int fragsize
 The block size (samples per channel) for waveform audio data. More...
 
unsigned int fftlen
 FFT length used for filtering. More...
 
unsigned int channels
 Number of prepared audio channels processed by this MHA plugin. More...
 
MHAFilter::fftfilter_t fftfilt
 The filter object. More...
 

Detailed Description

Run-time configuration class for the fftfilter MHA plugin.

Constructor & Destructor Documentation

◆ fftfilter_t()

fftfilter::fftfilter_t::fftfilter_t ( const MHAParser::mfloat_t irs,
const unsigned int &  fragsize_,
const unsigned int &  channels_,
const unsigned int &  fftlen_ 
)

Initialization of new run-time configuration from channel-specific impulse responses.

Parameters
irsThe matrix containing the impulse responses (one response per channel, or the same response for every channels) as set by the parser.
fragsize_The block size (samples per channel) for waveform audio data
channels_The number of prepared audio channels for this MHA plugin.
fftlen_FFT length used for filtering

Member Function Documentation

◆ process()

mha_wave_t * fftfilter::fftfilter_t::process ( mha_wave_t s)

Let fftfiler object handle the filtering

Member Data Documentation

◆ irslen

unsigned int fftfilter::fftfilter_t::irslen
private

Length of the longest impulse response applied.

◆ fragsize

unsigned int fftfilter::fftfilter_t::fragsize
private

The block size (samples per channel) for waveform audio data.

◆ fftlen

unsigned int fftfilter::fftfilter_t::fftlen
private

FFT length used for filtering.

◆ channels

unsigned int fftfilter::fftfilter_t::channels
private

Number of prepared audio channels processed by this MHA plugin.

◆ fftfilt

MHAFilter::fftfilter_t fftfilter::fftfilter_t::fftfilt
private

The filter object.


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