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 | 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.
#define BIAS 0x84 |
define the add-in bias for 16 bit samples
Definition at line 44 of file ulaw.c.
Referenced by linear2ulaw().
#define CLIP 32635 |
Definition at line 45 of file ulaw.c.
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().
|
static |
Definition at line 52 of file ulaw.c.
References __ast_lin2mu, __ast_mulaw, AST_ULAW_TAB_SIZE, BIAS, and CLIP.
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(), and linear2ulaw().
short __ast_mulaw[256] |