Codename Pineapple

Home page | Mailing list | Docs

Last updated: Sat Feb 3 05:00:59 2007

Asterisk developer's documentation :: Codename Pineapple


alaw.h File Reference


Detailed Description

A-Law to Signed linear conversion.

Definition in file alaw.h.

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define AST_ALAW(a)   (__ast_alaw[(int)(a)])
#define AST_LIN2A(a)   (__ast_lin2a[((unsigned short)(a)) >> 3])

Functions

void ast_alaw_init (void)

Variables

short __ast_alaw [256]
unsigned char __ast_lin2a [8192]


Define Documentation

#define AST_ALAW  )     (__ast_alaw[(int)(a)])
 

Definition at line 41 of file alaw.h.

Referenced by ast_dsp_process(), fill_rxgain(), and fill_txgain().

#define AST_LIN2A  )     (__ast_lin2a[((unsigned short)(a)) >> 3])
 

Definition at line 40 of file alaw.h.

Referenced by fill_rxgain(), and fill_txgain().


Function Documentation

void ast_alaw_init void   ) 
 

To init the ulaw to slinear conversion stuff, this needs to be run.

Definition at line 80 of file alaw.c.

References alaw2linear().

00081 {
00082    int i;
00083    /* 
00084     *  Set up mu-law conversion table
00085     */
00086    for (i = 0; i < 256; i++) {
00087            __ast_alaw[i] = alaw2linear(i);
00088    }
00089    /* set up the reverse (mu-law) conversion table */
00090    for (i = -32768; i < 32768; i++) {
00091       __ast_lin2a[((unsigned short)i) >> 3] = linear2alaw(i);
00092    }
00093 
00094 }


Variable Documentation

short __ast_alaw[256]
 

help

Definition at line 78 of file alaw.c.

unsigned char __ast_lin2a[8192]
 

Definition at line 77 of file alaw.c.


Asterisk is a trademark for Digium, inc.. | Edvina.net | Asterisk.org | This documentation was generated with Doxygen