34 #include "asterisk/module.h"
40 #define BUFFER_SAMPLES 8096
50 unsigned char *src = f->
data.
ptr;
94 .
name =
"testlawtolin",
118 .
name =
"lintotestlaw",
int datalen
actual space used in outbuf
Asterisk main include file. File version handling, generic pbx functions.
union ast_trans_pvt::@213 outbuf
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
Configuration File Parser.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
static struct ast_frame * slin8_sample(void)
static struct ast_translator ulawtolin
The complete translator for ulawToLin.
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)
Default structure for translators, with the basic fields and buffers, all allocated as part of the sa...
#define AST_FORMAT_TESTLAW
static struct ast_frame * ulaw_sample(void)
#define AST_FORMAT_SLINEAR
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.
#define ASTERISK_GPL_KEY
The text the key() function should return.
union ast_frame::@172 data
#define ASTERISK_FILE_VERSION(file, version)
Register/unregister a source code file with the core.