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

Public Member Functions

 level_matching_config_t (const mhaconfig_t &cfg_, const std::vector< std::vector< int >> &pairs_, mha_real_t signal_lp_fpass_, mha_real_t signal_fstop_, unsigned signal_lp_order_, mha_real_t level_tau_, mha_real_t range_)
 RT-config c'tor. More...
 
 ~level_matching_config_t ()=default
 
mha_wave_tprocess (mha_wave_t *)
 
mha_spec_tprocess (mha_spec_t *)
 

Private Attributes

MHASignal::waveform_t tmp
 Temporary storage for input signal to use waveform_t helper functions. More...
 
std::vector< channel_pairpairings
 Channel pairings. More...
 
MHAFilter::iir_filter_state_t lp
 Nth-order low pass filter used to exclude high frequencies from level matching. More...
 
mha_real_t range
 Maximum matching range. Maximum adjustment done. More...
 
unsigned fftlen
 fftlen in spectral domain More...
 

Constructor & Destructor Documentation

◆ level_matching_config_t()

level_matching::level_matching_config_t::level_matching_config_t ( const mhaconfig_t cfg_,
const std::vector< std::vector< int >> &  pairs_,
mha_real_t  signal_lp_fpass_,
mha_real_t  signal_lp_fstop_,
unsigned  signal_lp_order_,
mha_real_t  level_tau_,
mha_real_t  range_ 
)

RT-config c'tor.

Parameters
cfg_Structure containing a description of the form of the signal (domain, number of channels, frames per block, sampling rate.
Precondition
Size of param pairs must be two
Parameters
pairs_Matrix containing the channel indices of the microphone pairs. Two entries per row.
signal_tauTime constant of the signal low pass filter in seconds.
level_tauTime constant of the level mismatch averaging filter in seconds.

◆ ~level_matching_config_t()

level_matching::level_matching_config_t::~level_matching_config_t ( )
default

Member Function Documentation

◆ process() [1/2]

mha_wave_t * level_matching::level_matching_config_t::process ( mha_wave_t s)

◆ process() [2/2]

mha_spec_t * level_matching::level_matching_config_t::process ( mha_spec_t s)

Member Data Documentation

◆ tmp

MHASignal::waveform_t level_matching::level_matching_config_t::tmp
private

Temporary storage for input signal to use waveform_t helper functions.

◆ pairings

std::vector<channel_pair> level_matching::level_matching_config_t::pairings
private

Channel pairings.

◆ lp

MHAFilter::iir_filter_state_t level_matching::level_matching_config_t::lp
private

Nth-order low pass filter used to exclude high frequencies from level matching.

◆ range

mha_real_t level_matching::level_matching_config_t::range
private

Maximum matching range. Maximum adjustment done.

◆ fftlen

unsigned level_matching::level_matching_config_t::fftlen
private

fftlen in spectral domain


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