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

Real-time class for after burn effect. More...

Public Member Functions

 dc_afterburn_rt_t (const std::vector< float > &cf, unsigned int channels, float srate, const dc_afterburn_vars_t &vars)
 
void burn (float &Gin, float Lin, unsigned int band, unsigned int channel)
 gain modifier method (afterburn). More...
 

Private Attributes

std::vector< float > drain_inv
 
std::vector< float > conflux
 
std::vector< float > maxgain
 
std::vector< float > mpo_inv
 
std::vector< MHAFilter::o1flt_lowpass_tlp
 

Detailed Description

Real-time class for after burn effect.

The constructor processes the parameters and creates pre-processed variables for efficient realtime processing.

Constructor & Destructor Documentation

◆ dc_afterburn_rt_t()

DynComp::dc_afterburn_rt_t::dc_afterburn_rt_t ( const std::vector< float > &  cf,
unsigned int  channels,
float  srate,
const dc_afterburn_vars_t vars 
)

Member Function Documentation

◆ burn()

void DynComp::dc_afterburn_rt_t::burn ( float &  Gin,
float  Lin,
unsigned int  band,
unsigned int  channel 
)
inline

gain modifier method (afterburn).

Parameters
GinLinear gain.
LinInput level (Pascal).
bandFilter band number.
channelChannel number.

Output level for MPO is estimated by Gin * Lin.

Member Data Documentation

◆ drain_inv

std::vector<float> DynComp::dc_afterburn_rt_t::drain_inv
private

◆ conflux

std::vector<float> DynComp::dc_afterburn_rt_t::conflux
private

◆ maxgain

std::vector<float> DynComp::dc_afterburn_rt_t::maxgain
private

◆ mpo_inv

std::vector<float> DynComp::dc_afterburn_rt_t::mpo_inv
private

◆ lp

std::vector<MHAFilter::o1flt_lowpass_t> DynComp::dc_afterburn_rt_t::lp
private

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