Wed Jan 8 2020 09:49:47
Asterisk developer's documentation
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
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 = {
17
.
frametype
=
AST_FRAME_VOICE
,
18
.subclass.codec =
AST_FORMAT_LPC10
,
19
.datalen =
sizeof
(
ex_lpc10
),
20
/* All frames are 22 ms long (maybe a little more -- why did he choose
21
LPC10_SAMPLES_PER_FRAME sample frames anyway?? */
22
.
samples
= LPC10_SAMPLES_PER_FRAME,
23
.
mallocd
= 0,
24
.
offset
= 0,
25
.
src
= __PRETTY_FUNCTION__,
26
.
data
.ptr =
ex_lpc10
,
27
};
28
29
return
&
f
;
30
}
ast_frame::offset
int offset
Definition:
frame.h:156
AST_FORMAT_LPC10
#define AST_FORMAT_LPC10
Definition:
frame.h:256
ast_frame::src
const char * src
Definition:
frame.h:158
AST_FRAME_VOICE
Definition:
frame.h:105
lpc10_sample
static struct ast_frame * lpc10_sample(void)
Definition:
ex_lpc10.h:14
f
static struct ast_format f[]
Definition:
format_g726.c:181
ex_lpc10
static uint8_t ex_lpc10[]
Definition:
ex_lpc10.h:10
ast_frame::mallocd
int mallocd
Definition:
frame.h:152
ast_frame
Data structure associated with a single frame of data.
Definition:
frame.h:142
ast_frame::frametype
enum ast_frame_type frametype
Definition:
frame.h:144
ast_frame::data
union ast_frame::@172 data
ast_frame::samples
int samples
Definition:
frame.h:150
codecs
ex_lpc10.h
Generated by
1.8.5