echo.h File Reference
#include "fir.h"
Go to the source code of this file.
|
Classes |
struct | echo_can_state_t |
Enumerations |
enum | {
ECHO_CAN_USE_ADAPTION = 0x01,
ECHO_CAN_USE_NLP = 0x02,
ECHO_CAN_USE_CNG = 0x04,
ECHO_CAN_USE_CLIP = 0x08,
ECHO_CAN_USE_SUPPRESSOR = 0x10,
ECHO_CAN_USE_TX_HPF = 0x20,
ECHO_CAN_USE_RX_HPF = 0x40,
ECHO_CAN_DISABLE = 0x80
} |
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) |
Detailed Description
Function Documentation
Set the adaption mode of a voice echo canceller context.
- Parameters:
-
| ec | The echo canceller context. |
| adaption_mode | The mode. |
Referenced by echo_can_init().
Flush (reinitialise) a voice echo canceller context.
- Parameters:
-
| ec | The echo canceller context. |
Free a voice echo canceller context.
- Parameters:
-
| ec | The echo canceller context. |
- Returns:
- 0 for OK, else -1.
Process to high pass filter the tx signal.
- Parameters:
-
| ec | The echo canceller context. |
| tx | The transmitted auio sample. |
- Returns:
- The HP filtered transmit sample, send this to your D/A.
Create a voice echo canceller context.
- Parameters:
-
| len | The length of the canceller, in samples. |
- Returns:
- The new canceller context, or NULL if the canceller could not be created.
References echo_can_state_t::cng_level, echo_can_state_t::curr_pos, echo_can_state_t::dtd_onset, echo_can_adaption_mode(), echo_can_state_t::fir_state, echo_can_state_t::fir_taps16, echo_can_state_t::fir_taps32, echo_can_state_t::geigel_lag, echo_can_state_t::geigel_max, echo_can_state_t::rx_power_threshold, echo_can_state_t::tap_mask, echo_can_state_t::tap_rotate_counter, echo_can_state_t::tap_set, and echo_can_state_t::taps.
Release a voice echo canceller context.
- Parameters:
-
| ec | The echo canceller context. |
- Returns:
- 0 for OK, else -1.
Process a sample through a voice echo canceller.
- Parameters:
-
| ec | The echo canceller context. |
| tx | The transmitted audio sample. |
| rx | The received audio sample. |
- Returns:
- The clean (echo cancelled) received sample.