Asterisk - The Open Source Telephony Project
18.5.0
|
u-Law to Signed linear conversion More...
Go to the source code of this file.
Macros | |
#define | AST_LIN2MU(a) (__ast_lin2mu[((unsigned short)(a)) >> 2]) |
#define | AST_MULAW(a) (__ast_mulaw[(a)]) |
#define | AST_ULAW_BIT_LOSS 3 |
#define | AST_ULAW_SIGN_BIT 0x80 |
#define | AST_ULAW_STEP (1 << AST_ULAW_BIT_LOSS) |
#define | AST_ULAW_TAB_SIZE (32768 / AST_ULAW_STEP + 1) |
Functions | |
void | ast_ulaw_init (void) |
Set up mu-law conversion table. More... | |
Variables | |
unsigned char | __ast_lin2mu [16384] |
converts signed linear to mulaw More... | |
short | __ast_mulaw [256] |
u-Law to Signed linear conversion
Definition in file ulaw.h.
#define AST_LIN2MU | ( | a | ) | (__ast_lin2mu[((unsigned short)(a)) >> 2]) |
Definition at line 49 of file ulaw.h.
Referenced by ast_dsp_process(), ast_ulaw_init(), fill_rxgain(), fill_txgain(), lintoulaw(), lintoulaw_framein(), and load_module().
#define AST_MULAW | ( | a | ) | (__ast_mulaw[(a)]) |
Definition at line 85 of file ulaw.h.
Referenced by ast_dsp_process(), ast_dsp_silence_noise_with_energy(), ast_ulaw_init(), calc_energy(), fill_rxgain(), fill_txgain(), load_module(), tdd_feed(), ulawtolin(), and ulawtolin_framein().
#define AST_ULAW_STEP (1 << AST_ULAW_BIT_LOSS) |
Definition at line 33 of file ulaw.h.
Referenced by ast_ulaw_init().
#define AST_ULAW_TAB_SIZE (32768 / AST_ULAW_STEP + 1) |
Definition at line 34 of file ulaw.h.
Referenced by linear2ulaw().
void ast_ulaw_init | ( | void | ) |
Set up mu-law conversion table.
To init the ulaw to slinear conversion stuff, this needs to be run.
Definition at line 173 of file ulaw.c.
References __ast_lin2mu, __ast_mulaw, AST_LIN2MU, ast_log, AST_MULAW, AST_ULAW_STEP, ast_udptl::f, linear2ulaw(), LOG_NOTICE, and LOG_WARNING.
Referenced by asterisk_daemon().
unsigned char __ast_lin2mu[16384] |
converts signed linear to mulaw
Definition at line 49 of file ulaw.c.
Referenced by ast_ulaw_init(), and linear2ulaw().
short __ast_mulaw[256] |