![]()  | 
  
    The Open Master Hearing Aid (openMHA)
    openMHA
    
   Open community platform for hearing aid algorithm research 
   | 
 
Runtime configuration class for setting the channels of an output signal (e.g. More...
Public Member Functions | |
| Set_rms_cfg (std::string ac_name_in, std::string ac_name_out) | |
| Constructor of the runtime configuration class.  More... | |
| mha_wave_t * | process (mha_wave_t *signal, mha_wave_t channel_rms_in, mha_wave_t channel_rms_out) | 
| Process function of the runtime configuration class (main signal processing function).  More... | |
Private Attributes | |
| std::string | ac_name_in_cfg | 
| Name of the AC variable containing the (exponentially averaged) RMS of the original input signal to be applied to the output signal.  More... | |
| std::string | ac_name_out_cfg | 
| Name of the AC variable containing the (exponentially averaged) RMS of the output signal used for normalization.  More... | |
Runtime configuration class for setting the channels of an output signal (e.g.
of some signal processing operation) to the RMS values of the original input signal
| Set_rms_cfg::Set_rms_cfg | ( | std::string | ac_name_in, | 
| std::string | ac_name_out | ||
| ) | 
Constructor of the runtime configuration class.
| ac_name_in | Name of the AC variable containing the (exponentially averaged) RMS of the original input signal to be applied to the output signal (cannot be changed at runtime) | 
| ac_name_out | Name of the AC variable containing the (exponentially averaged) RMS of the output signal used for normalization (cannot be changed at runtime) | 
| mha_wave_t * Set_rms_cfg::process | ( | mha_wave_t * | signal, | 
| mha_wave_t | channel_rms_in, | ||
| mha_wave_t | channel_rms_out | ||
| ) | 
Process function of the runtime configuration class (main signal processing function).
It sets the RMS of the output signal fragment to the value specified by the parameter channel_rms_in
| signal | Pointer to the current input signal fragment | 
| channel_rms_in | Contains a vector of RMS values for each channel of the original input signal to be applied to the output signal | 
| channel_rms_out | Contains a vector of RMS values for each channel of the output signal used for normalization | 
      
  | 
  private | 
Name of the AC variable containing the (exponentially averaged) RMS of the original input signal to be applied to the output signal.
      
  | 
  private | 
Name of the AC variable containing the (exponentially averaged) RMS of the output signal used for normalization.