The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
Class to realize a simple delay of waveform streams. More...
Public Member Functions | |
delay_t (std::vector< int > delays, unsigned int channels) | |
Constructor. More... | |
mha_wave_t * | process (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 |
Class to realize a simple delay of waveform streams.
MHASignal::delay_t::delay_t | ( | std::vector< int > | delays, |
unsigned int | channels | ||
) |
Constructor.
delays | Vector of delays, one entry for each channel. |
channels | Number of channels expected. |
MHASignal::delay_t::~delay_t | ( | ) |
mha_wave_t * MHASignal::delay_t::process | ( | mha_wave_t * | s | ) |
Processing method.
s | Input waveform fragment, with number of channels provided in constructor. |
|
inline |
|
private |
|
private |
|
private |
|
private |