Random Data. More...
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 [] |
Random Data.
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 48 of file ex_speex.h.
References AST_FORMAT_SPEEX16, AST_FRAME_VOICE, ast_frame::data, ex_speex16, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, and ast_frame::src.
00049 { 00050 static struct ast_frame f = { 00051 .frametype = AST_FRAME_VOICE, 00052 .subclass.codec = AST_FORMAT_SPEEX16, 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 00062 return &f; 00063 }
static struct ast_frame* speex_sample | ( | void | ) | [static, read] |
Definition at line 17 of file ex_speex.h.
References AST_FORMAT_SPEEX, AST_FRAME_VOICE, ast_frame::data, ex_speex, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, and ast_frame::src.
00018 { 00019 static struct ast_frame f = { 00020 .frametype = AST_FRAME_VOICE, 00021 .subclass.codec = AST_FORMAT_SPEEX, 00022 .datalen = sizeof(ex_speex), 00023 /* All frames are 20 ms long */ 00024 .samples = SPEEX_SAMPLES, 00025 .mallocd = 0, 00026 .offset = 0, 00027 .src = __PRETTY_FUNCTION__, 00028 .data.ptr = ex_speex, 00029 }; 00030 00031 return &f; 00032 }
uint8_t ex_speex[] [static] |
Definition at line 10 of file ex_speex.h.
Referenced by speex_sample().
uint8_t ex_speex16[] [static] |
Definition at line 34 of file ex_speex.h.
Referenced by speex16_sample().