#include <sent/adin.h>
Include dependency graph for zmean.c:
Go to the source code of this file.
Functions | |
void | zmean_reset () |
void | sub_zmean (SP16 *speech, int samplenum) |
Remove DC offset. | |
Variables | |
static int | zlen = 0 |
Current recorded length for DC offset estimation. | |
static float | zmean = 0.0 |
Current mean. |
The estimation method of DC offset depends on the type of input device. On file input, the mean of entire samples is used as estimated offset. On microphone input and network input, The first ZMEANSAMPLES samples in the input stream are used to estimate the offset, and the value will be used for the rest of the input.
Definition in file zmean.c.
|
Reset status. Definition at line 50 of file zmean.c. Referenced by adin_reset_zmean(). |
|
Remove DC offset. The DC offset is estimated by the first samples after zmean_reset() was called. If the first input segment is longer than ZMEANSAMPLES, the whole input is used to estimate the zero mean. Otherwise, the zero mean will continue to be updated until the read length exceed ZMEANSAMPLES.
Definition at line 69 of file zmean.c. Referenced by adin_cut(). |