
Go to the source code of this file.
Functions | |
| static struct ast_frame * | g726_sample (void) |
Variables | |
| static uint8_t | ex_g726 [] |
Copyright (C) 2008, Digium, Inc.
Distributed under the terms of the GNU General Public License
Definition in file ex_g726.h.
| static struct ast_frame* g726_sample | ( | void | ) | [static, read] |
Definition at line 18 of file ex_g726.h.
References ARRAY_LEN, AST_FORMAT_G726, ast_format_set(), AST_FRAME_VOICE, ex_g726, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.
00019 { 00020 static struct ast_frame f = { 00021 .frametype = AST_FRAME_VOICE, 00022 .datalen = sizeof(ex_g726), 00023 .samples = ARRAY_LEN(ex_g726) * 2, /* 2 samples per byte */ 00024 .mallocd = 0, 00025 .offset = 0, 00026 .src = __PRETTY_FUNCTION__, 00027 .data.ptr = ex_g726, 00028 }; 00029 00030 ast_format_set(&f.subclass.format, AST_FORMAT_G726, 0); 00031 00032 return &f; 00033 }
uint8_t ex_g726[] [static] |
1.5.6