Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
oslec.h File Reference

Go to the source code of this file.

Macros

#define ECHO_CAN_USE_ADAPTION   0x01
 
#define ECHO_CAN_USE_NLP   0x02
 
#define ECHO_CAN_USE_CNG   0x04
 
#define ECHO_CAN_USE_CLIP   0x08
 
#define ECHO_CAN_USE_TX_HPF   0x10
 
#define ECHO_CAN_USE_RX_HPF   0x20
 
#define ECHO_CAN_DISABLE   0x40
 

Functions

struct oslec_stateoslec_create (int len, int adaption_mode)
 
void oslec_free (struct oslec_state *ec)
 
void oslec_flush (struct oslec_state *ec)
 
void oslec_adaption_mode (struct oslec_state *ec, int adaption_mode)
 
void oslec_snapshot (struct oslec_state *ec)
 
int16_t oslec_update (struct oslec_state *ec, int16_t tx, int16_t rx)
 
int16_t oslec_hpf_tx (struct oslec_state *ec, int16_t tx)
 

Macro Definition Documentation

#define ECHO_CAN_DISABLE   0x40

Definition at line 37 of file oslec.h.

#define ECHO_CAN_USE_ADAPTION   0x01

Definition at line 31 of file oslec.h.

#define ECHO_CAN_USE_CLIP   0x08

Definition at line 34 of file oslec.h.

#define ECHO_CAN_USE_CNG   0x04

Definition at line 33 of file oslec.h.

#define ECHO_CAN_USE_NLP   0x02

Definition at line 32 of file oslec.h.

#define ECHO_CAN_USE_RX_HPF   0x20

Definition at line 36 of file oslec.h.

#define ECHO_CAN_USE_TX_HPF   0x10

Definition at line 35 of file oslec.h.

Function Documentation

void oslec_adaption_mode ( struct oslec_state ec,
int  adaption_mode 
)

oslec_adaption_mode - set the adaption mode of a voice echo canceller context. The echo canceller context. : The mode.

Definition at line 295 of file echo.c.

struct oslec_state* oslec_create ( int  len,
int  adaption_mode 
)
read

oslec_create - Create a voice echo canceller context. : The length of the canceller, in samples.

Returns
: The new canceller context, or NULL if the canceller could not be created.

Definition at line 229 of file echo.c.

void oslec_flush ( struct oslec_state ec)

oslec_flush - Flush (reinitialise) a voice echo canceller context. : The echo canceller context.

Definition at line 301 of file echo.c.

void oslec_free ( struct oslec_state ec)

oslec_free - Free a voice echo canceller context. : The echo canceller context.

Definition at line 282 of file echo.c.

int16_t oslec_hpf_tx ( struct oslec_state ec,
int16_t  tx 
)

oslec_hpf_tx: Process to high pass filter the tx signal. : The echo canceller context. : The transmitted auio sample.

The return value is the HP filtered transmit sample, send this to your D/A.

Definition at line 627 of file echo.c.

void oslec_snapshot ( struct oslec_state ec)

Definition at line 327 of file echo.c.

int16_t oslec_update ( struct oslec_state ec,
int16_t  tx,
int16_t  rx 
)

oslec_update: Process a sample through a voice echo canceller. : The echo canceller context. : The transmitted audio sample. : The received audio sample.

The return value is the clean (echo cancelled) received sample.

Definition at line 335 of file echo.c.