Asterisk - The Open Source Telephony Project GIT-master-a63eec2
|
RAW SLINEAR Formats. More...
#include "asterisk.h"
#include "asterisk/mod_format.h"
#include "asterisk/module.h"
#include "asterisk/endian.h"
#include "asterisk/format_cache.h"
Go to the source code of this file.
Functions | |
static void | __reg_module (void) |
static void | __unreg_module (void) |
struct ast_module * | AST_MODULE_SELF_SYM (void) |
static struct ast_frame * | generic_read (struct ast_filestream *s, int *whennext, unsigned int buf_size) |
static int | load_module (void) |
static struct ast_frame * | slinear12_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear16_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear192_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear24_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear32_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear44_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear48_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear96_read (struct ast_filestream *s, int *whennext) |
static struct ast_frame * | slinear_read (struct ast_filestream *s, int *whennext) |
static int | slinear_seek (struct ast_filestream *fs, off_t sample_offset, int whence) |
static off_t | slinear_tell (struct ast_filestream *fs) |
static int | slinear_trunc (struct ast_filestream *fs) |
static int | slinear_write (struct ast_filestream *fs, struct ast_frame *f) |
static int | unload_module (void) |
Variables | |
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Raw Signed Linear Audio support (SLN) 8khz-192khz" , .key = ASTERISK_GPL_KEY , .buildopt_sum = AST_BUILDOPT_SUM, .support_level = AST_MODULE_SUPPORT_CORE, .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_APP_DEPEND } |
static const struct ast_module_info * | ast_module_info = &__mod_info |
static struct ast_format_def | slin12_f |
static struct ast_format_def | slin16_f |
static struct ast_format_def | slin192_f |
static struct ast_format_def | slin24_f |
static struct ast_format_def | slin32_f |
static struct ast_format_def | slin44_f |
static struct ast_format_def | slin48_f |
static struct ast_format_def | slin96_f |
static struct ast_format_def | slin_f |
static struct ast_format_def * | slin_list [] |
RAW SLINEAR Formats.
Definition in file format_sln.c.
|
static |
Definition at line 289 of file format_sln.c.
|
static |
Definition at line 289 of file format_sln.c.
struct ast_module * AST_MODULE_SELF_SYM | ( | void | ) |
Definition at line 289 of file format_sln.c.
|
static |
Definition at line 35 of file format_sln.c.
References ast_format_get_name(), AST_FRAME_SET_BUFFER, AST_FRIENDLY_OFFSET, ast_log, ast_filestream::buf, ast_frame::data, ast_frame::datalen, errno, ast_filestream::f, ast_frame_subclass::format, ast_filestream::fr, LOG_WARNING, NULL, ast_frame::ptr, ast_frame::samples, and ast_frame::subclass.
Referenced by slinear12_read(), slinear16_read(), slinear192_read(), slinear24_read(), slinear32_read(), slinear44_read(), slinear48_read(), slinear96_read(), and slinear_read().
|
static |
Definition at line 260 of file format_sln.c.
References ARRAY_LEN, ast_format_def_register, ast_format_slin, ast_format_slin12, ast_format_slin16, ast_format_slin192, ast_format_slin24, ast_format_slin32, ast_format_slin44, ast_format_slin48, ast_format_slin96, AST_MODULE_LOAD_DECLINE, AST_MODULE_LOAD_SUCCESS, ast_format_def::format, slin12_f, slin16_f, slin192_f, slin24_f, slin32_f, slin44_f, slin48_f, slin96_f, slin_f, slin_list, and unload_module().
|
static |
Definition at line 139 of file format_sln.c.
References generic_read().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 70 of file format_sln.c.
References ast_log, AST_LOG_WARNING, errno, ast_filestream::f, max, min, ast_frame::offset, and SEEK_FORCECUR.
|
static |
Definition at line 122 of file format_sln.c.
References ast_filestream::f.
|
static |
Definition at line 105 of file format_sln.c.
References ast_log, AST_LOG_WARNING, errno, and ast_filestream::f.
|
static |
Definition at line 54 of file format_sln.c.
References ast_log, ast_frame::data, ast_frame::datalen, errno, ast_filestream::f, LOG_WARNING, and ast_frame::ptr.
|
static |
Definition at line 247 of file format_sln.c.
References ARRAY_LEN, ast_format_def_unregister(), name, and slin_list.
Referenced by load_module().
|
static |
Definition at line 289 of file format_sln.c.
|
static |
Definition at line 289 of file format_sln.c.
|
static |
Definition at line 140 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 152 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 224 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 164 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 176 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 188 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 200 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 212 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 128 of file format_sln.c.
Referenced by load_module().
|
static |
Definition at line 235 of file format_sln.c.
Referenced by load_module(), and unload_module().