mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 15:18:38 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user