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

Class to realize a simple delay of waveform streams. More...

Inheritance diagram for MHASignal::delay_t:
Inheritance graph

Public Member Functions

 delay_t (std::vector< int > delays, unsigned int channels)
 Constructor. More...
 
mha_wave_tprocess (mha_wave_t *s)
 Processing method. More...
 
 ~delay_t ()
 
std::string inspect () const
 

Private Attributes

unsigned int channels
 
unsigned int * delays
 
unsigned int * pos
 
mha_real_t ** buffer
 

Detailed Description

Class to realize a simple delay of waveform streams.

Constructor & Destructor Documentation

◆ delay_t()

MHASignal::delay_t::delay_t ( std::vector< int >  delays,
unsigned int  channels 
)

Constructor.

Parameters
delaysVector of delays, one entry for each channel.
channelsNumber of channels expected.

◆ ~delay_t()

MHASignal::delay_t::~delay_t ( )

Member Function Documentation

◆ process()

mha_wave_t * MHASignal::delay_t::process ( mha_wave_t s)

Processing method.

Parameters
sInput waveform fragment, with number of channels provided in constructor.
Returns
Output waveform fragment.

◆ inspect()

std::string MHASignal::delay_t::inspect ( ) const
inline

Member Data Documentation

◆ channels

unsigned int MHASignal::delay_t::channels
private

◆ delays

unsigned int* MHASignal::delay_t::delays
private

◆ pos

unsigned int* MHASignal::delay_t::pos
private

◆ buffer

mha_real_t** MHASignal::delay_t::buffer
private

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