diff options
Diffstat (limited to 'include/asterisk/ulaw.h')
-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 |