|
Asterisk - The Open Source Telephony Project GIT-master-9647a4f
|
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. | |
Variables | |
| unsigned char | __ast_lin2mu [16384] |
| converts signed linear to mulaw | |
| 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]) |
| #define AST_MULAW | ( | a | ) | (__ast_mulaw[(a)]) |
| #define AST_ULAW_STEP (1 << AST_ULAW_BIT_LOSS) |
| #define AST_ULAW_TAB_SIZE (32768 / AST_ULAW_STEP + 1) |
| 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().
|
extern |
converts signed linear to mulaw
Definition at line 49 of file ulaw.c.
Referenced by ast_ulaw_init().
|
extern |