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

Run time configuration for the fftfbpow plugin. More...

Inheritance diagram for fftfbpow::fftfbpow_t:
Inheritance graph

Public Member Functions

 fftfbpow_t (MHAOvlFilter::fftfb_vars_t &vars, unsigned int nch, unsigned int nfft, mha_real_t fs, MHA_AC::algo_comm_t &ac, std::string name)
 Constructor of the run time configuration. More...
 
- Public Member Functions inherited from MHAOvlFilter::fftfb_t
 fftfb_t (MHAOvlFilter::fftfb_vars_t &par, unsigned int nfft, mha_real_t fs)
 Constructor for a FFT-based overlapping filter bank. More...
 
 ~fftfb_t ()
 
void apply_gains (mha_spec_t *s_out, const mha_spec_t *s_in, const mha_wave_t *gains)
 
void get_fbpower (mha_wave_t *fbpow, const mha_spec_t *s_in)
 
void get_fbpower_db (mha_wave_t *fbpow, const mha_spec_t *s_in)
 
std::vector< mha_real_tget_ltass_gain_db () const
 
unsigned int bin1 (unsigned int band) const
 Return index of first non-zero filter shape window. More...
 
unsigned int bin2 (unsigned int band) const
 Return index of first zero filter shape window above center frequency. More...
 
unsigned int get_fftlen () const
 Return fft length. More...
 
mha_real_t w (unsigned int k, unsigned int b) const
 Return filter shape window at index k in band b. More...
 
- Public Member Functions inherited from MHAOvlFilter::fspacing_t
 fspacing_t (const MHAOvlFilter::fftfb_vars_t &par, unsigned int nfft, mha_real_t fs)
 
std::vector< unsigned int > get_cf_fftbin () const
 
std::vector< mha_real_tget_cf_hz () const
 
std::vector< mha_real_tget_ef_hz () const
 
unsigned int nbands () const
 Return number of bands in filter bank. More...
 

Public Attributes

MHA_AC::waveform_t fbpow
 AC variable containing the estimated power in each frequency band. More...
 

Additional Inherited Members

- Protected Member Functions inherited from MHAOvlFilter::fspacing_t
void fail_on_nonmonotonic_cf ()
 
void fail_on_unique_fftbins ()
 
- Protected Attributes inherited from MHAOvlFilter::fspacing_t
std::vector< MHAOvlFilter::band_descriptor_tbands
 
mha_real_t(* symmetry_scale )(mha_real_t)
 

Detailed Description

Run time configuration for the fftfbpow plugin.

Constructor & Destructor Documentation

◆ fftfbpow_t()

fftfbpow::fftfbpow_t::fftfbpow_t ( MHAOvlFilter::fftfb_vars_t vars,
unsigned int  nch,
unsigned int  nfft,
mha_real_t  fs,
MHA_AC::algo_comm_t ac,
std::string  name 
)

Constructor of the run time configuration.

Parameters
varsSet of configuration variables for FFT-based overlapping filters
nchNumber of audio input channels
nfftLength of FFT
fsSampling rate
acAC space
nameConfigured name of plugin interface, used as prefix for AC variable names

Member Data Documentation

◆ fbpow

MHA_AC::waveform_t fftfbpow::fftfbpow_t::fbpow

AC variable containing the estimated power in each frequency band.


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