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 46 of file ulaw.c.
Referenced by linear2ulaw().
#define CLIP 32635 |
Definition at line 47 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 175 of file ulaw.c.
References AST_LIN2MU, ast_log(), AST_MULAW, AST_ULAW_STEP, f, linear2ulaw(), LOG_NOTICE, and LOG_WARNING.
Referenced by load_module(), and main().
|
static |
unsigned char __ast_lin2mu[16384] |