| Asterisk - The Open Source Telephony Project GIT-master-27fb039
    | 
codec_alaw.c - translate between signed linear and alaw More...
#include "asterisk.h"#include "asterisk/module.h"#include "asterisk/config.h"#include "asterisk/translate.h"#include "asterisk/alaw.h"#include "asterisk/utils.h"#include "asterisk/slin.h"#include "ex_alaw.h"
Go to the source code of this file.
| Macros | |
| #define | BUFFER_SAMPLES 8096 /* size for the translation buffers */ | 
| Functions | |
| static void | __reg_module (void) | 
| static void | __unreg_module (void) | 
| static int | alawtolin_framein (struct ast_trans_pvt *pvt, struct ast_frame *f) | 
| decode frame into lin and fill output buffer. | |
| struct ast_module * | AST_MODULE_SELF_SYM (void) | 
| static int | lintoalaw_framein (struct ast_trans_pvt *pvt, struct ast_frame *f) | 
| convert and store input samples in output buffer | |
| static int | load_module (void) | 
| static int | unload_module (void) | 
| Variables | |
| static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_DEFAULT , .description = "A-law Coder/Decoder" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, } | 
| static struct ast_translator | alawtolin | 
| static const struct ast_module_info * | ast_module_info = &__mod_info | 
| static struct ast_translator | lintoalaw | 
codec_alaw.c - translate between signed linear and alaw
Definition in file codec_alaw.c.
| #define BUFFER_SAMPLES 8096 /* size for the translation buffers */ | 
Definition at line 38 of file codec_alaw.c.
| 
 | static | 
Definition at line 143 of file codec_alaw.c.
| 
 | static | 
Definition at line 143 of file codec_alaw.c.
| 
 | static | 
decode frame into lin and fill output buffer.
Definition at line 45 of file codec_alaw.c.
References AST_ALAW, ast_frame::data, ast_trans_pvt::datalen, ast_trans_pvt::i16, ast_trans_pvt::outbuf, ast_frame::ptr, ast_frame::samples, and ast_trans_pvt::samples.
| struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) | 
Definition at line 143 of file codec_alaw.c.
| 
 | static | 
convert and store input samples in output buffer
Definition at line 61 of file codec_alaw.c.
References AST_LIN2A, ast_trans_pvt::c, ast_frame::data, ast_trans_pvt::datalen, ast_trans_pvt::outbuf, ast_frame::ptr, ast_frame::samples, and ast_trans_pvt::samples.
| 
 | static | 
Definition at line 124 of file codec_alaw.c.
References alawtolin, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_register_translator, lintoalaw, and unload_module().
| 
 | static | 
Definition at line 114 of file codec_alaw.c.
References alawtolin, ast_unregister_translator(), and lintoalaw.
Referenced by load_module().
| 
 | static | 
Definition at line 143 of file codec_alaw.c.
| 
 | static | 
Definition at line 76 of file codec_alaw.c.
Referenced by load_module(), and unload_module().
| 
 | static | 
Definition at line 143 of file codec_alaw.c.
| 
 | static | 
Definition at line 95 of file codec_alaw.c.
Referenced by load_module(), and unload_module().