Asterisk - The Open Source Telephony Project
18.5.0
|
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(), ast_dsp_silence_noise_with_energy(), calc_energy(), fill_rxgain(), fill_txgain(), handle_clear_alarms(), and load_module().
#define AST_ALAW_AMI_MASK 0x55 |
Definition at line 36 of file alaw.h.
Referenced by alaw2linear(), and linear2alaw().
#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(), fill_rxgain(), fill_txgain(), handle_clear_alarms(), 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 152 of file alaw.c.
References __ast_alaw, __ast_lin2a, alaw2linear(), AST_ALAW, AST_ALAW_STEP, AST_LIN2A, ast_log, linear2alaw(), LOG_NOTICE, and LOG_WARNING.
Referenced by asterisk_daemon().
short __ast_alaw[256] |
unsigned char __ast_lin2a[8192] |
converts signed linear to alaw
Definition at line 146 of file alaw.c.
Referenced by ast_alaw_init().