Work with WAV in the proprietary Microsoft format. Microsoft WAV format (8000hz Signed Linear)
More...
|
static struct ast_module_info | __mod_info = { .name = AST_MODULE, .flags = AST_MODFLAG_LOAD_ORDER , .description = "Microsoft WAV/WAV16 format (8kHz/16kHz Signed Linear)" , .key = "This paragraph is copyright (c) 2006 by Digium, Inc. \In order for your module to load, it must return this \key via a function called \"key\". Any code which \includes this paragraph must be licensed under the GNU \General Public License version 2 or later (at your \option). In addition to Digium's general reservations \of rights, Digium expressly reserves the right to \allow other parties to license this paragraph under \different terms. Any use of Digium, Inc. trademarks or \logos (including \"Asterisk\" or \"Digium\") without \express written permission of Digium, Inc. is prohibited.\n" , .buildopt_sum = "ac1f6a56484a8820659555499174e588" , .load = load_module, .unload = unload_module, .load_pri = AST_MODPRI_APP_DEPEND } |
|
static struct ast_module_info * | ast_module_info = &__mod_info |
|
static struct ast_format | wav16_f |
|
static struct ast_format | wav_f |
|
Work with WAV in the proprietary Microsoft format. Microsoft WAV format (8000hz Signed Linear)
- File name extension: wav (lower case)
Definition in file format_wav.c.
Definition at line 361 of file format_wav.c.
References ast_filestream::_private, AST_FORMAT_SLINEAR, AST_FORMAT_SLINEAR16, AST_FRAME_SET_BUFFER, AST_FRAME_VOICE, AST_FRIENDLY_OFFSET, ast_log(), ast_filestream::buf, ast_frame_subclass::codec, ast_frame::data, ast_frame::datalen, errno, ast_filestream::f, ast_filestream::fr, ast_frame::frametype, wav_desc::hz, LOG_WARNING, ast_frame::mallocd, wav_desc::maxlen, ast_frame::ptr, ast_frame::samples, ast_frame::subclass, and WAV_BUF_SIZE.
365 #if __BYTE_ORDER == __BIG_ENDIAN
377 if (fs->
maxlen - here < bytes)
378 bytes = fs->
maxlen - here;
395 #if __BYTE_ORDER == __BIG_ENDIAN
398 for( x = 0; x < samples; x++)
399 tmp[x] = (tmp[x] << 8) | ((tmp[x] & 0xff00) >> 8);
union ast_frame_subclass subclass
#define AST_FRAME_SET_BUFFER(fr, _base, _ofs, _datalen)
#define AST_FRIENDLY_OFFSET
Offset into a frame's data buffer.
#define AST_FORMAT_SLINEAR16
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
#define AST_FORMAT_SLINEAR
enum ast_frame_type frametype
union ast_frame::@172 data
Definition at line 406 of file format_wav.c.
References ast_filestream::_private, AST_FORMAT_SLINEAR, AST_FORMAT_SLINEAR16, AST_FRAME_VOICE, ast_getformatname(), ast_log(), wav_desc::bytes, ast_frame_subclass::codec, ast_frame::data, ast_frame::datalen, errno, ast_filestream::f, ast_filestream::fmt, ast_format::format, ast_frame::frametype, wav_desc::hz, if(), LOG_WARNING, ast_frame::ptr, and ast_frame::subclass.
408 #if __BYTE_ORDER == __BIG_ENDIAN
410 short tmp[16000], *tmpi;
430 #if __BYTE_ORDER == __BIG_ENDIAN
432 if (f->
datalen >
sizeof(tmp)) {
437 for (x=0; x < f->
datalen/2; x++)
438 tmp[x] = (tmpi[x] << 8) | ((tmpi[x] & 0xff00) >> 8);
union ast_frame_subclass subclass
#define AST_FORMAT_SLINEAR16
char * ast_getformatname(format_t format)
Get the name of a format.
void ast_log(int level, const char *file, int line, const char *function, const char *fmt,...)
Used for sending a log message This is the standard logger function. Probably the only way you will i...
if(yyss+yystacksize-1<=yyssp)
#define AST_FORMAT_SLINEAR
enum ast_frame_type frametype
union ast_frame::@172 data