Asterisk - The Open Source Telephony Project  18.5.0
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 
10 static uint8_t ex_lpc10[] = {
11  0x01, 0x08, 0x31, 0x08, 0x31, 0x80, 0x30,
12 };
13 
14 static 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 }
#define LPC10_SAMPLES_PER_FRAME
Definition: lpc10.h:36
struct ast_frame_subclass subclass
struct ast_format * ast_format_lpc10
Built-in cached ilbc format.
Definition: format_cache.c:131
const char * src
static struct ast_frame * lpc10_sample(void)
Definition: ex_lpc10.h:14
static uint8_t ex_lpc10[]
Definition: ex_lpc10.h:10
Data structure associated with a single frame of data.
union ast_frame::@263 data
enum ast_frame_type frametype
struct ast_format * format