diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-12-07 22:57:34 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2001-12-07 22:57:34 +0000 |
commit | afbca6b478628803ab7a9768c8b7bf3c846e3b01 (patch) | |
tree | abb0e18c8355f757f2621516d64d71fbf88cb2f4 /include | |
parent | 3607024782adf8abf822c89bb2198d6157528b1e (diff) |
Version 0.1.10 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@390 f38db490-d61c-443f-a65b-d21fe96a405b
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 |