38 #define BUFFER_SAMPLES 8096 48 unsigned char *src = f->
data.
ptr;
101 .
name =
"testlawtolin",
143 .
name =
"lintotestlaw",
int datalen
actual space used in outbuf
Asterisk main include file. File version handling, generic pbx functions.
Descriptor of a translator.
Support for translation of data formats. translate.c.
static int ulawtolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
convert and store samples in outbuf
static struct ast_frame * slin8_sample(void)
static struct ast_translator ulawtolin
The complete translator for ulawToLin.
Configuration File Parser.
static struct ast_translator testlawtolin
static int unload_module(void)
u-Law to Signed linear conversion
static struct ast_translator lintotestlaw
#define ast_register_translator(t)
See __ast_register_translator()
int ast_unregister_translator(struct ast_translator *t)
Unregister a translator Unregisters the given tranlator.
static int load_module(void)
union ast_trans_pvt::@327 outbuf
Default structure for translators, with the basic fields and buffers, all allocated as part of the sa...
Module has failed to load, may be in an inconsistent state.
AST_MODULE_INFO(ASTERISK_GPL_KEY, AST_MODFLAG_GLOBAL_SYMBOLS|AST_MODFLAG_LOAD_ORDER, "HTTP Phone Provisioning",.support_level=AST_MODULE_SUPPORT_EXTENDED,.load=load_module,.unload=unload_module,.reload=reload,.load_pri=AST_MODPRI_CHANNEL_DEPEND,.requires="http",)
static struct ast_frame * ulaw_sample(void)
static int lintoulaw_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
convert and store samples in outbuf
Data structure associated with a single frame of data.
static struct ast_translator lintoulaw
The complete translator for LinToulaw.
union ast_frame::@263 data
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.