Asterisk - The Open Source Telephony Project
GIT-master-f36a736
codecs
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
.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?? */
21
.
samples
=
LPC10_SAMPLES_PER_FRAME
,
22
.
mallocd
= 0,
23
.
offset
= 0,
24
.
src
= __PRETTY_FUNCTION__,
25
.
data
.ptr =
ex_lpc10
,
26
};
27
28
f.
subclass
.
format
=
ast_format_lpc10
;
29
30
return
&f;
31
}
ex_lpc10
static uint8_t ex_lpc10[]
Definition:
ex_lpc10.h:10
lpc10_sample
static struct ast_frame * lpc10_sample(void)
Definition:
ex_lpc10.h:14
ast_format_lpc10
struct ast_format * ast_format_lpc10
Built-in cached ilbc format.
Definition:
format_cache.c:126
AST_FRAME_VOICE
@ AST_FRAME_VOICE
Definition:
include/asterisk/frame.h:101
LPC10_SAMPLES_PER_FRAME
#define LPC10_SAMPLES_PER_FRAME
Definition:
lpc10.h:36
ast_frame_subclass::format
struct ast_format * format
Definition:
include/asterisk/frame.h:155
ast_frame
Data structure associated with a single frame of data.
Definition:
include/asterisk/frame.h:165
ast_frame::subclass
struct ast_frame_subclass subclass
Definition:
include/asterisk/frame.h:169
ast_frame::data
union ast_frame::@226 data
ast_frame::samples
int samples
Definition:
include/asterisk/frame.h:173
ast_frame::frametype
enum ast_frame_type frametype
Definition:
include/asterisk/frame.h:167
ast_frame::mallocd
int mallocd
Definition:
include/asterisk/frame.h:175
ast_frame::offset
int offset
Definition:
include/asterisk/frame.h:179
ast_frame::src
const char * src
Definition:
include/asterisk/frame.h:181
Generated on Wed Dec 18 2024 20:04:15 for Asterisk - The Open Source Telephony Project by
1.9.4