Asterisk - The Open Source Telephony Project GIT-master-f36a736
ex_lpc10.h
Go to the documentation of this file.
1/*! \file
2 * \brief
3 *
4 * Copyright (C) 2008, Digium, Inc.
5 *
6 * Distributed under the terms of the GNU General Public License
7 *
8 */
9
10static uint8_t ex_lpc10[] = {
11 0x01, 0x08, 0x31, 0x08, 0x31, 0x80, 0x30,
12};
13
14static struct ast_frame *lpc10_sample(void)
15{
16 static struct ast_frame f = {
18 .datalen = sizeof(ex_lpc10),
19 /* All frames are 22 ms long (maybe a little more -- why did he choose
20 LPC10_SAMPLES_PER_FRAME sample frames anyway?? */
22 .mallocd = 0,
23 .offset = 0,
24 .src = __PRETTY_FUNCTION__,
25 .data.ptr = ex_lpc10,
26 };
27
29
30 return &f;
31}
static uint8_t ex_lpc10[]
Definition: ex_lpc10.h:10
static struct ast_frame * lpc10_sample(void)
Definition: ex_lpc10.h:14
struct ast_format * ast_format_lpc10
Built-in cached ilbc format.
Definition: format_cache.c:126
@ AST_FRAME_VOICE
#define LPC10_SAMPLES_PER_FRAME
Definition: lpc10.h:36
struct ast_format * format
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
union ast_frame::@226 data
enum ast_frame_type frametype
const char * src