diff options
author | Mark Spencer <markster@digium.com> | 2001-12-07 22:57:34 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2001-12-07 22:57:34 +0000 |
commit | 3a8facf06d80000c1b6a2e2b5eb8f3f1be909ff5 (patch) | |
tree | abb0e18c8355f757f2621516d64d71fbf88cb2f4 /include | |
parent | 42a1f82af3ec41653384faaacd75e31693ea8ab9 (diff) |
Version 0.1.10 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/ulaw.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/asterisk/ulaw.h b/include/asterisk/ulaw.h index f7d3ea5fe..5bb8065fe 100755 --- a/include/asterisk/ulaw.h +++ b/include/asterisk/ulaw.h @@ -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 |