48 #define BUFFER_SAMPLES 8096 113 (uint8_t *) f->
data.
ptr, in_samples);
142 .sample_rate = 16000,
168 .sample_rate = 16000,
180 .
name =
"g722tolin16",
184 .sample_rate = 16000,
189 .sample_rate = 16000,
201 .
name =
"lin16tog722",
205 .sample_rate = 16000,
210 .sample_rate = 16000,
static int unload_module(void)
int datalen
actual space used in outbuf
Asterisk main include file. File version handling, generic pbx functions.
int g722_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len)
Descriptor of a translator.
Support for translation of data formats. translate.c.
static int load_module(void)
static struct ast_frame * slin8_sample(void)
static int g722tolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
static struct ast_translator lintog722
static struct ast_frame * slin16_sample(void)
g722_encode_state_t * g722_encode_init(g722_encode_state_t *s, int rate, int options)
static struct ast_translator g722tolin
Configuration File Parser.
static int lintog722_new(struct ast_trans_pvt *pvt)
init a new instance of g722_encoder_pvt.
#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 struct ast_frame * g722_sample(void)
A set of macros to manage forward-linked lists.
union ast_trans_pvt::@327 outbuf
Default structure for translators, with the basic fields and buffers, all allocated as part of the sa...
static struct ast_translator g722tolin16
static int lintog722_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
g722_decode_state_t * g722_decode_init(g722_decode_state_t *s, int rate, int options)
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",)
Data structure associated with a single frame of data.
int g722_encode(g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[], int len)
union ast_frame::@263 data
static int lin16tog722_new(struct ast_trans_pvt *pvt)
static int g722tolin_new(struct ast_trans_pvt *pvt)
init a new instance of g722_encoder_pvt.
#define ASTERISK_GPL_KEY
The text the key() function should return.
Asterisk module definitions.
static int g722tolin16_new(struct ast_trans_pvt *pvt)
static struct ast_translator lin16tog722