|
Asterisk - The Open Source Telephony Project
18.5.0
|
MP3 Format Handler. More...
#include "asterisk.h"#include "mp3/mpg123.h"#include "mp3/mpglib.h"#include "asterisk/module.h"#include "asterisk/mod_format.h"#include "asterisk/logger.h"#include "asterisk/format_cache.h"
Go to the source code of this file.
Data Structures | |
| struct | mp3_private |
Macros | |
| #define | BLOCKSIZE 160 |
| #define | GAIN -4 /* 2^GAIN is the multiple to increase the volume by */ |
| #define | MP3_BUFLEN 320 |
| #define | MP3_DCACHE 8192 |
| #define | MP3_SCACHE 16384 |
| #define | OUTSCALE 4096 |
Functions | |
| AST_MODULE_INFO_STANDARD_EXTENDED (ASTERISK_GPL_KEY, "MP3 format [Any rate but 8000hz mono is optimal]") | |
| static int | load_module (void) |
| static void | mp3_close (struct ast_filestream *s) |
| static int | mp3_dqueue (struct ast_filestream *s) |
| static char * | mp3_getcomment (struct ast_filestream *s) |
| static int | mp3_open (struct ast_filestream *s) |
| static int | mp3_queue (struct ast_filestream *s) |
| static struct ast_frame * | mp3_read (struct ast_filestream *s, int *whennext) |
| static int | mp3_rewrite (struct ast_filestream *s, const char *comment) |
| static int | mp3_seek (struct ast_filestream *s, off_t sample_offset, int whence) |
| static int | mp3_squeue (struct ast_filestream *s) |
| static off_t | mp3_tell (struct ast_filestream *s) |
| static int | mp3_trunc (struct ast_filestream *s) |
| static int | mp3_write (struct ast_filestream *fs, struct ast_frame *f) |
| static int | unload_module (void) |
Variables | |
| static struct ast_format_def | mp3_f |
| static const char | name [] = "mp3" |
MP3 Format Handler.
Definition in file format_mp3.c.
| #define BLOCKSIZE 160 |
Definition at line 70 of file format_mp3.c.
| #define GAIN -4 /* 2^GAIN is the multiple to increase the volume by */ |
Definition at line 73 of file format_mp3.c.
| #define MP3_BUFLEN 320 |
Definition at line 45 of file format_mp3.c.
Referenced by mp3_read().
| #define MP3_DCACHE 8192 |
Definition at line 47 of file format_mp3.c.
Referenced by mp3_dqueue(), and mp3_squeue().
| #define MP3_SCACHE 16384 |
Definition at line 46 of file format_mp3.c.
Referenced by mp3_squeue().
| #define OUTSCALE 4096 |
Definition at line 71 of file format_mp3.c.
Referenced by mp3_open(), and mp3_queue().
| AST_MODULE_INFO_STANDARD_EXTENDED | ( | ASTERISK_GPL_KEY | , |
| "MP3 format " | [Any rate but 8000hz mono is optimal] | ||
| ) |
Referenced by unload_module().
|
static |
Definition at line 317 of file format_mp3.c.
References ast_format_def_register, ast_format_slin, and ast_format_def::format.
|
static |
Definition at line 106 of file format_mp3.c.
References ast_filestream::_private, and mp3_private::mp.
|
static |
Definition at line 135 of file format_mp3.c.
References ast_filestream::_private, mp3_private::dbuf, mp3_private::dbuflen, mp3_private::dbufoffset, mp3_private::mp, MP3_DCACHE, NULL, and mp3_private::sbuflen.
Referenced by mp3_queue().
|
static |
Definition at line 295 of file format_mp3.c.
References NULL.
|
static |
Definition at line 98 of file format_mp3.c.
References ast_filestream::_private, mp3_private::mp, and OUTSCALE.
|
static |
Definition at line 147 of file format_mp3.c.
References ast_filestream::_private, mp3_private::dbuflen, mp3_private::dbufoffset, ast_filestream::f, mp3_private::mp, mp3_dqueue(), mp3_squeue(), mp3_private::offset, OUTSCALE, mp3_private::sbuflen, and mp3_private::seek.
Referenced by mp3_read().
|
static |
Definition at line 191 of file format_mp3.c.
References ast_filestream::_private, AST_FRAME_SET_BUFFER, AST_FRIENDLY_OFFSET, ast_filestream::buf, mp3_private::buflen, mp3_private::dbuf, mp3_private::dbuflen, mp3_private::dbufoffset, ast_filestream::fr, MP3_BUFLEN, mp3_queue(), NULL, mp3_private::offset, and ast_frame::samples.
|
static |
|
static |
Definition at line 248 of file format_mp3.c.
References ast_filestream::_private, ast_filestream::f, max, min, mp3_private::offset, mp3_private::seek, and SEEK_FORCECUR.
|
static |
Definition at line 114 of file format_mp3.c.
References ast_filestream::_private, ast_log, mp3_private::dbuf, mp3_private::dbuflen, mp3_private::dbufoffset, errno, ast_filestream::f, LOG_WARNING, mp3_private::mp, MP3_DCACHE, MP3_SCACHE, mp3_private::sbuf, and mp3_private::sbuflen.
Referenced by mp3_queue().
|
static |
Definition at line 288 of file format_mp3.c.
References ast_filestream::_private, and mp3_private::offset.
|
static |
|
static |
|
static |
Definition at line 324 of file format_mp3.c.
References ast_format_def_unregister(), AST_MODULE_INFO_STANDARD_EXTENDED(), ASTERISK_GPL_KEY, and name.
|
static |
Definition at line 300 of file format_mp3.c.
|
static |
Definition at line 68 of file format_mp3.c.
Referenced by unload_module().
1.8.13