Asterisk - The Open Source Telephony Project GIT-master-f36a736
|
u-Law to Signed linear conversion More...
Go to the source code of this file.
Macros | |
#define | BIAS 0x84 |
#define | CLIP 32635 |
Functions | |
void | ast_ulaw_init (void) |
Set up mu-law conversion table. More... | |
static unsigned char | linear2ulaw (short sample) |
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.c.
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, linear2ulaw(), LOG_NOTICE, and LOG_WARNING.
Referenced by asterisk_daemon().
|
static |
Definition at line 52 of file ulaw.c.
Referenced by ast_ulaw_init().
unsigned char __ast_lin2mu[16384] |
converts signed linear to mulaw
Definition at line 49 of file ulaw.c.
Referenced by ast_ulaw_init().
short __ast_mulaw[256] |