Wed Jan 8 2020 09:49:47

Asterisk developer's documentation


ex_speex.h
Go to the documentation of this file.
1 /*! \file
2  * \brief Random 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_speex[] = {
11  0x2e, 0x8e, 0x0f, 0x9a, 0x20, 0000, 0x01, 0x7f, 0xff, 0xff,
12  0xff, 0xff, 0xff, 0x91, 0000, 0xbf, 0xff, 0xff, 0xff, 0xff,
13  0xff, 0xdc, 0x80, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
14  0x98, 0x7f, 0xff, 0xff, 0xff, 0xe8, 0xff, 0xf7, 0x80,
15 };
16 
17 static struct ast_frame *speex_sample(void)
18 {
19  static struct ast_frame f = {
21  .subclass.codec = AST_FORMAT_SPEEX,
22  .datalen = sizeof(ex_speex),
23  /* All frames are 20 ms long */
25  .mallocd = 0,
26  .offset = 0,
27  .src = __PRETTY_FUNCTION__,
28  .data.ptr = ex_speex,
29  };
30 
31  return &f;
32 }
33 
34 static uint8_t ex_speex16[] = {
35  0x3f, 0x78, 0x89, 0x14, 0x4a, 0x00, 0x00, 0x7f, 0xff, 0xff,
36  0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x92,
37  0x06, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
38  0xff, 0xff, 0xff, 0xc0, 0x30, 0x5f, 0xff, 0xfd, 0xbb, 0xee,
39  0x30, 0x56, 0xff, 0xf8, 0x74, 0x54, 0x31, 0xe6, 0xfe, 0x71,
40  0xdc, 0xca, 0x44, 0x6a, 0x43, 0x75, 0xae, 0x31, 0x7a, 0x50,
41  0xd9, 0xfc, 0x93, 0x13, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
42  0xab, 0xab, 0xab, 0xab, 0x3a, 0xba, 0xba, 0xba, 0xba, 0xba,
43  0xba, 0xba, 0xba, 0xba, 0xb0, 0xab, 0xab, 0xab, 0xd9, 0x37,
44  0xab, 0xab, 0xb4, 0x34, 0xe9, 0x0b, 0xd4, 0x2f, 0x13, 0x4c,
45  0xf0, 0xef, 0x8d, 0xdd, 0x99, 0xc7
46 };
47 
48 static struct ast_frame *speex16_sample(void)
49 {
50  static struct ast_frame f = {
52  .subclass.codec = AST_FORMAT_SPEEX16,
53  .datalen = sizeof(ex_speex16),
54  /* All frames are 20 ms long */
56  .mallocd = 0,
57  .offset = 0,
58  .src = __PRETTY_FUNCTION__,
59  .data.ptr = ex_speex16,
60  };
61 
62  return &f;
63 }
int offset
Definition: frame.h:156
static uint8_t ex_speex16[]
Definition: ex_speex.h:34
const char * src
Definition: frame.h:158
#define AST_FORMAT_SPEEX
Definition: frame.h:260
static struct ast_frame * speex_sample(void)
Definition: ex_speex.h:17
#define SPEEX_SAMPLES
Definition: codec_speex.c:82
static struct ast_format f[]
Definition: format_g726.c:181
static struct ast_frame * speex16_sample(void)
Definition: ex_speex.h:48
int mallocd
Definition: frame.h:152
Data structure associated with a single frame of data.
Definition: frame.h:142
static uint8_t ex_speex[]
Definition: ex_speex.h:10
enum ast_frame_type frametype
Definition: frame.h:144
union ast_frame::@172 data
int samples
Definition: frame.h:150
#define AST_FORMAT_SPEEX16
Definition: frame.h:301