The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
All types for the fshift plugin live in this namespace. More...
Classes | |
class | fshift_config_t |
fshift runtime config class More... | |
class | fshift_t |
fshift plugin interface class More... | |
Functions | |
int | fft_find_bin (mha_real_t frequency, unsigned fftlen, mha_real_t srate) |
Finds bin number of FFT bin nearest to the given frequency. More... | |
All types for the fshift plugin live in this namespace.
int fshift::fft_find_bin | ( | mha_real_t | frequency, |
unsigned | fftlen, | ||
mha_real_t | srate | ||
) |
Finds bin number of FFT bin nearest to the given frequency.
frequency | The frequency for which to look. Has to be in range [-srate/2,+srate/2] |
fftlen | Length of the FFT. |
srate | Sampling rate of the waveform from which the FFT originates. |