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,
Asterisk main include file. File version handling, generic pbx functions.
static int g722tolin16_new(struct ast_trans_pvt *pvt)
static int g722tolin_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
static int g722tolin_new(struct ast_trans_pvt *pvt)
init a new instance of g722_encoder_pvt.
static struct ast_translator g722tolin16
static struct ast_translator lin16tog722
static struct ast_translator lintog722
static struct ast_translator g722tolin
static int lintog722_framein(struct ast_trans_pvt *pvt, struct ast_frame *f)
static int load_module(void)
static int unload_module(void)
static int lintog722_new(struct ast_trans_pvt *pvt)
init a new instance of g722_encoder_pvt.
static int lin16tog722_new(struct ast_trans_pvt *pvt)
static struct ast_frame * g722_sample(void)
int g722_encode(g722_encode_state_t *s, uint8_t g722_data[], const int16_t amp[], int len)
g722_encode_state_t * g722_encode_init(g722_encode_state_t *s, int rate, int options)
int g722_decode(g722_decode_state_t *s, int16_t amp[], const uint8_t g722_data[], int len)
g722_decode_state_t * g722_decode_init(g722_decode_state_t *s, int rate, int options)
Configuration File Parser.
A set of macros to manage forward-linked lists.
Asterisk module definitions.
#define AST_MODULE_INFO(keystr, flags_to_set, desc, fields...)
@ AST_MODULE_SUPPORT_CORE
#define ASTERISK_GPL_KEY
The text the key() function should return.
@ AST_MODULE_LOAD_SUCCESS
@ AST_MODULE_LOAD_DECLINE
Module has failed to load, may be in an inconsistent state.
static struct ast_frame * slin8_sample(void)
static struct ast_frame * slin16_sample(void)
Data structure associated with a single frame of data.
union ast_frame::@226 data
Default structure for translators, with the basic fields and buffers, all allocated as part of the sa...
int datalen
actual space used in outbuf
union ast_trans_pvt::@287 outbuf
Descriptor of a translator.
Support for translation of data formats. translate.c.
#define ast_register_translator(t)
See __ast_register_translator()
int ast_unregister_translator(struct ast_translator *t)
Unregister a translator Unregisters the given translator.