spandsp 0.0.6
|
#include "fir.h"
Go to the source code of this file.
Typedefs | |
typedef struct echo_can_state_s | echo_can_state_t |
Functions | |
echo_can_state_t * | echo_can_init (int len, int adaption_mode) |
int | echo_can_release (echo_can_state_t *ec) |
int | echo_can_free (echo_can_state_t *ec) |
void | echo_can_flush (echo_can_state_t *ec) |
void | echo_can_adaption_mode (echo_can_state_t *ec, int adaption_mode) |
int16_t | echo_can_update (echo_can_state_t *ec, int16_t tx, int16_t rx) |
int16_t | echo_can_hpf_tx (echo_can_state_t *ec, int16_t tx) |
void | echo_can_snapshot (echo_can_state_t *ec) |
typedef struct echo_can_state_s echo_can_state_t |
G.168 echo canceller descriptor. This defines the working state for a line echo canceller.
void echo_can_adaption_mode | ( | echo_can_state_t * | ec, |
int | adaption_mode ) |
Set the adaption mode of a voice echo canceller context.
ec | The echo canceller context. |
adaption_mode | The mode. |
Referenced by echo_can_init().
void echo_can_flush | ( | echo_can_state_t * | ec | ) |
Flush (reinitialise) a voice echo canceller context.
ec | The echo canceller context. |
References echo_can_state_s::fir_taps16, and echo_can_state_s::fir_taps32.
int echo_can_free | ( | echo_can_state_t * | ec | ) |
Free a voice echo canceller context.
ec | The echo canceller context. |
References echo_can_state_s::fir_taps16, and echo_can_state_s::fir_taps32.
int16_t echo_can_hpf_tx | ( | echo_can_state_t * | ec, |
int16_t | tx ) |
Process to high pass filter the tx signal.
ec | The echo canceller context. |
tx | The transmitted auio sample. |
echo_can_state_t * echo_can_init | ( | int | len, |
int | adaption_mode ) |
Create a voice echo canceller context.
len | The length of the canceller, in samples. |
References echo_can_adaption_mode(), echo_can_state_s::fir_taps16, and echo_can_state_s::fir_taps32.
int echo_can_release | ( | echo_can_state_t * | ec | ) |
Release a voice echo canceller context.
ec | The echo canceller context. |
int16_t echo_can_update | ( | echo_can_state_t * | ec, |
int16_t | tx, | ||
int16_t | rx ) |
Process a sample through a voice echo canceller.
ec | The echo canceller context. |
tx | The transmitted audio sample. |
rx | The received audio sample. |
References echo_can_state_s::fir_taps16, and echo_can_state_s::fir_taps32.