Version 0.1.10 from FTP

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2001-12-07 22:57:34 +00:00
parent 42a1f82af3
commit 3a8facf06d
5 changed files with 334 additions and 12 deletions

View File

@@ -14,10 +14,21 @@
#ifndef _ASTERISK_ULAW_H
#define _ASTERISK_ULAW_H
//! Init the ulaw conversion stuff
/*!
* To init the ulaw to slinear conversion stuff, this needs to be run.
*/
extern void ast_ulaw_init(void);
extern unsigned char ast_lin2mu[65536];
extern short ast_mulaw[256];
//! converts signed linear to mulaw
/*!
*/
extern unsigned char __ast_lin2mu[16384];
//! help
extern short __ast_mulaw[256];
#define AST_LIN2MU(a) (__ast_lin2mu[((unsigned short)(a)) >> 2])
#define AST_MULAW(a) (__ast_mulaw[(a)])
#endif