Asterisk - The Open Source Telephony Project  21.4.1
Macros | Functions | Variables
alaw.h File Reference

A-Law to Signed linear conversion. More...

Go to the source code of this file.

Macros

#define AST_ALAW(a)   (__ast_alaw[(int)(a)])
 
#define AST_ALAW_AMI_MASK   0x55
 
#define AST_ALAW_BIT_LOSS   4
 
#define AST_ALAW_SIGN_BIT   0x80
 
#define AST_ALAW_STEP   (1 << AST_ALAW_BIT_LOSS)
 
#define AST_ALAW_TAB_SIZE   (32768 / AST_ALAW_STEP + 1)
 
#define AST_LIN2A(a)   (__ast_lin2a[((unsigned short)(a)) >> 3])
 

Functions

void ast_alaw_init (void)
 To init the alaw to slinear conversion stuff, this needs to be run.
 

Variables

short __ast_alaw [256]
 
unsigned char __ast_lin2a [8192]
 converts signed linear to alaw
 

Detailed Description

A-Law to Signed linear conversion.

Definition in file alaw.h.

Variable Documentation

short __ast_alaw[256]

help

Definition at line 150 of file alaw.c.