
Go to the source code of this file.
Functions | |
| static struct ast_frame * | speex16_sample (void) |
| static struct ast_frame * | speex_sample (void) |
Variables | |
| static uint8_t | ex_speex [] |
| static uint8_t | ex_speex16 [] |
Copyright (C) 2008, Digium, Inc.
Distributed under the terms of the GNU General Public License
Definition in file ex_speex.h.
| static struct ast_frame* speex16_sample | ( | void | ) | [static, read] |
Definition at line 49 of file ex_speex.h.
References ast_format_set(), AST_FORMAT_SPEEX16, AST_FRAME_VOICE, ast_frame::data, ex_speex16, ast_frame_subclass::format, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, ast_frame::src, and ast_frame::subclass.
00050 { 00051 static struct ast_frame f = { 00052 .frametype = AST_FRAME_VOICE, 00053 .datalen = sizeof(ex_speex16), 00054 /* All frames are 20 ms long */ 00055 .samples = SPEEX_SAMPLES, 00056 .mallocd = 0, 00057 .offset = 0, 00058 .src = __PRETTY_FUNCTION__, 00059 .data.ptr = ex_speex16, 00060 }; 00061 ast_format_set(&f.subclass.format, AST_FORMAT_SPEEX16, 0); 00062 00063 return &f; 00064 }
| static struct ast_frame* speex_sample | ( | void | ) | [static, read] |
Definition at line 17 of file ex_speex.h.
References ast_format_set(), AST_FORMAT_SPEEX, AST_FRAME_VOICE, ast_frame::data, ex_speex, ast_frame_subclass::format, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, ast_frame::src, and ast_frame::subclass.
00018 { 00019 static struct ast_frame f = { 00020 .frametype = AST_FRAME_VOICE, 00021 .datalen = sizeof(ex_speex), 00022 /* All frames are 20 ms long */ 00023 .samples = SPEEX_SAMPLES, 00024 .mallocd = 0, 00025 .offset = 0, 00026 .src = __PRETTY_FUNCTION__, 00027 .data.ptr = ex_speex, 00028 }; 00029 00030 ast_format_set(&f.subclass.format, AST_FORMAT_SPEEX, 0); 00031 00032 return &f; 00033 }
uint8_t ex_speex[] [static] |
uint8_t ex_speex16[] [static] |
1.5.6