The Open Master Hearing Aid (openMHA)  openMHA
Open community platform for hearing aid algorithm research
sine_cfg_t Struct Reference

Runtime configuration of the sine plugin. More...

Public Member Functions

 sine_cfg_t (double sampling_rate, mha_real_t frequency, mha_real_t newlev, int _mix, const std::vector< int > &_channels)
 Constructor computes data members from input parameters. More...
 

Public Attributes

double phase_increment_div_2pi
 Phase increment per sample, divided by 2 pi for easier phase wrapping. More...
 
double amplitude
 Amplitude of the sinusoid in Pascal. More...
 
int mix
 0 for mode replace, 1 for mode mix. Used as factor on input signal. More...
 
const std::vector< int > channels
 Indices of affected audio channels. More...
 

Detailed Description

Runtime configuration of the sine plugin.

Constructor & Destructor Documentation

◆ sine_cfg_t()

sine_cfg_t::sine_cfg_t ( double  sampling_rate,
mha_real_t  frequency,
mha_real_t  newlev,
int  _mix,
const std::vector< int > &  _channels 
)
inline

Constructor computes data members from input parameters.

Member Data Documentation

◆ phase_increment_div_2pi

double sine_cfg_t::phase_increment_div_2pi

Phase increment per sample, divided by 2 pi for easier phase wrapping.

◆ amplitude

double sine_cfg_t::amplitude

Amplitude of the sinusoid in Pascal.

◆ mix

int sine_cfg_t::mix

0 for mode replace, 1 for mode mix. Used as factor on input signal.

◆ channels

const std::vector<int> sine_cfg_t::channels

Indices of affected audio channels.


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