Asterisk - The Open Source Telephony Project  18.5.0
ex_g722.h
Go to the documentation of this file.
1 /*! \file
2  * \brief 8-bit data
3  *
4  * Copyright (C) 2008, Digium, Inc.
5  *
6  * Distributed under the terms of the GNU General Public License
7  *
8  */
9 
10 #ifndef ASTERISK_EX_G722_H
11 #define ASTERISK_EX_G722_H
12 
13 static uint8_t ex_g722[] = {
14  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
16  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
17  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
18  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
19  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
20  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
21  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
22  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
24  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
25  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
26  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
27  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
28  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
29  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
30  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
31  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
32  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
33  0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
34 };
35 
36 static struct ast_frame *g722_sample(void)
37 {
38  static struct ast_frame f = {
40  .datalen = sizeof(ex_g722),
42  .mallocd = 0,
43  .offset = 0,
44  .src = __PRETTY_FUNCTION__,
45  .data.ptr = ex_g722,
46  };
47 
49 
50  return &f;
51 }
52 
53 #endif /* ASTERISK_EX_G722_H */
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
struct ast_frame_subclass subclass
static struct ast_frame * g722_sample(void)
Definition: ex_g722.h:36
Data structure associated with a single frame of data.
enum ast_frame_type frametype
struct ast_format * format
static uint8_t ex_g722[]
Definition: ex_g722.h:13
struct ast_format * ast_format_slin
Built-in cached signed linear 8kHz format.
Definition: format_cache.c:41