A-Law to Signed linear conversion. More...
Go to the source code of this file.
Macros | |
#define | AST_ALAW(a) (__ast_alaw[(int)(a)]) |
#define | AST_ALAW_AMI_MASK 0x55 |
#define | AST_ALAW_BIT_LOSS 4 |
#define | AST_ALAW_SIGN_BIT 0x80 |
#define | AST_ALAW_STEP (1 << AST_ALAW_BIT_LOSS) |
#define | AST_ALAW_TAB_SIZE (32768 / AST_ALAW_STEP + 1) |
#define | AST_LIN2A(a) (__ast_lin2a[((unsigned short)(a)) >> 3]) |
Functions | |
void | ast_alaw_init (void) |
To init the alaw to slinear conversion stuff, this needs to be run. More... | |
Variables | |
short | __ast_alaw [256] |
unsigned char | __ast_lin2a [8192] |
converts signed linear to alaw More... | |
A-Law to Signed linear conversion.
Definition in file alaw.h.
#define AST_ALAW | ( | a | ) | (__ast_alaw[(int)(a)]) |
Definition at line 84 of file alaw.h.
Referenced by alawtolin_framein(), ast_alaw_init(), ast_dsp_process(), calc_energy(), dahdi_r2_alaw_to_linear(), fill_rxgain(), fill_txgain(), and load_module().
#define AST_ALAW_STEP (1 << AST_ALAW_BIT_LOSS) |
Definition at line 33 of file alaw.h.
Referenced by ast_alaw_init().
#define AST_ALAW_TAB_SIZE (32768 / AST_ALAW_STEP + 1) |
#define AST_LIN2A | ( | a | ) | (__ast_lin2a[((unsigned short)(a)) >> 3]) |
Definition at line 50 of file alaw.h.
Referenced by ast_alaw_init(), ast_dsp_process(), dahdi_r2_linear_to_alaw(), fill_rxgain(), fill_txgain(), lintoalaw_framein(), and load_module().
void ast_alaw_init | ( | void | ) |
To init the alaw to slinear conversion stuff, this needs to be run.
Definition at line 154 of file alaw.c.
References alaw2linear(), AST_ALAW, AST_ALAW_STEP, AST_LIN2A, ast_log(), linear2alaw(), LOG_NOTICE, and LOG_WARNING.
Referenced by main().