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

ac2wave real-time configuration class More...

Public Member Functions

 ac2wave_t (unsigned int frames_, unsigned int channels_, MHA_AC::algo_comm_t &ac_, std::string name_, float gain_in_, float gain_ac_, unsigned int delay_in_, unsigned int delay_ac_)
 Constructor of the real-time configuration. More...
 
mha_wave_tprocess (mha_wave_t *s)
 Process callback. More...
 

Private Attributes

unsigned int frames
 frames_ Number of frames in the input signal More...
 
unsigned int channels
 Number of channels in the input signal. More...
 
mha_wave_t w
 AC input waveform. More...
 
MHA_AC::algo_comm_tac
 Handle to AC space. More...
 
std::string name
 Name of the input AC variable. More...
 
MHASignal::delay_wave_t delay_in
 Delay, in fragments, for the input signal. More...
 
MHASignal::delay_wave_t delay_ac
 Delay, in fragments, for the AC input. More...
 
mha_real_t gain_in
 Linear gain for the input signal. More...
 
mha_real_t gain_ac
 Linear gain for the AC input. More...
 

Detailed Description

ac2wave real-time configuration class

Constructor & Destructor Documentation

◆ ac2wave_t()

ac2wave::ac2wave_t::ac2wave_t ( unsigned int  frames_,
unsigned int  channels_,
MHA_AC::algo_comm_t ac_,
std::string  name_,
float  gain_in_,
float  gain_ac_,
unsigned int  delay_in_,
unsigned int  delay_ac_ 
)

Constructor of the real-time configuration.

Parameters
frames_Number of frames in the input signal
channels_Number of channels in the input signal
ac_Handle to AC space
name_Name of the AC variable to be mixed in
gain_in_Linear gain for the input signal
gain_ac_Linear gain for the AC input
delay_in_Delay, in fragments, for the input signal
delay_ac_Delay, in fragments, for the AC input

Member Function Documentation

◆ process()

mha_wave_t * ac2wave::ac2wave_t::process ( mha_wave_t s)

Process callback.

Parameters
sPointer to input waveform
Returns
Pointer to output waveform

Member Data Documentation

◆ frames

unsigned int ac2wave::ac2wave_t::frames
private

frames_ Number of frames in the input signal

◆ channels

unsigned int ac2wave::ac2wave_t::channels
private

Number of channels in the input signal.

◆ w

mha_wave_t ac2wave::ac2wave_t::w
private

AC input waveform.

◆ ac

MHA_AC::algo_comm_t& ac2wave::ac2wave_t::ac
private

Handle to AC space.

◆ name

std::string ac2wave::ac2wave_t::name
private

Name of the input AC variable.

◆ delay_in

MHASignal::delay_wave_t ac2wave::ac2wave_t::delay_in
private

Delay, in fragments, for the input signal.

◆ delay_ac

MHASignal::delay_wave_t ac2wave::ac2wave_t::delay_ac
private

Delay, in fragments, for the AC input.

◆ gain_in

mha_real_t ac2wave::ac2wave_t::gain_in
private

Linear gain for the input signal.

◆ gain_ac

mha_real_t ac2wave::ac2wave_t::gain_ac
private

Linear gain for the AC input.


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