![]() |
The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
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... | |
Runtime configuration of the sine plugin.
|
inline |
Constructor computes data members from input parameters.
| double sine_cfg_t::phase_increment_div_2pi |
Phase increment per sample, divided by 2 pi for easier phase wrapping.
| double sine_cfg_t::amplitude |
Amplitude of the sinusoid in Pascal.
| int sine_cfg_t::mix |
0 for mode replace, 1 for mode mix. Used as factor on input signal.
| const std::vector<int> sine_cfg_t::channels |
Indices of affected audio channels.