Asterisk - The Open Source Telephony Project
GIT-master-a63eec2
Loading...
Searching...
No Matches
codecs
ex_gsm.h
Go to the documentation of this file.
1
/*! \file
2
* \brief 8-bit raw data
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_gsm
[] = {
11
0xda, 0xa6, 0xac, 0x2d, 0xa3, 0x50, 0x00, 0x49, 0x24, 0x92,
12
0x49, 0x24, 0x50, 0x40, 0x49, 0x24, 0x92, 0x37, 0x24, 0x52,
13
0x00, 0x49, 0x24, 0x92, 0x47, 0x24, 0x50, 0x80, 0x46, 0xe3,
14
0x6d, 0xb8, 0xdc,
15
};
16
17
static
struct
ast_frame
*
gsm_sample
(
void
)
18
{
19
static
struct
ast_frame
f = {
20
.
frametype
=
AST_FRAME_VOICE
,
21
.datalen =
sizeof
(
ex_gsm
),
22
/* All frames are 20 ms long */
23
.
samples
=
GSM_SAMPLES
,
24
.
mallocd
= 0,
25
.
offset
= 0,
26
.
src
= __PRETTY_FUNCTION__,
27
.
data
.ptr =
ex_gsm
,
28
};
29
30
f.
subclass
.
format
=
ast_format_gsm
;
31
32
return
&f;
33
}
GSM_SAMPLES
#define GSM_SAMPLES
Definition
codec_gsm.c:51
ex_gsm
static uint8_t ex_gsm[]
Definition
ex_gsm.h:10
gsm_sample
static struct ast_frame * gsm_sample(void)
Definition
ex_gsm.h:17
ast_format_gsm
struct ast_format * ast_format_gsm
Built-in cached gsm format.
Definition
format_cache.c:96
AST_FRAME_VOICE
@ AST_FRAME_VOICE
Definition
include/asterisk/frame.h:101
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::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::data
union ast_frame::@239 data
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 Oct 8 2025 20:04:16 for Asterisk - The Open Source Telephony Project by
1.9.8