#include <asterisk/alaw.h>
Go to the source code of this file.
Defines | |
#define | AMI_MASK 0x55 |
Functions | |
void | ast_alaw_init (void) |
Init the ulaw conversion stuff. | |
Variables | |
unsigned char | __ast_lin2a [8192] |
converts signed linear to mulaw | |
short | __ast_alaw [256] |
help |
|
|
|
Init the ulaw conversion stuff. To init the ulaw to slinear conversion stuff, this needs to be run. Definition at line 68 of file alaw.c. Referenced by main(). 00069 { 00070 int i; 00071 /* 00072 * Set up mu-law conversion table 00073 */ 00074 for(i = 0;i < 256;i++) 00075 { 00076 __ast_alaw[i] = alaw2linear(i); 00077 } 00078 /* set up the reverse (mu-law) conversion table */ 00079 for(i = -32768; i < 32768; i++) 00080 { 00081 __ast_lin2a[((unsigned short)i) >> 3] = linear2alaw(i); 00082 } 00083 00084 }
|
|
help
|
|
converts signed linear to mulaw
|