Wed Jan 8 2020 09:49:47

Asterisk developer's documentation


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 = {
21  .subclass.codec = AST_FORMAT_GSM,
22  .datalen = sizeof(ex_gsm),
23  /* All frames are 20 ms long */
25  .mallocd = 0,
26  .offset = 0,
27  .src = __PRETTY_FUNCTION__,
28  .data.ptr = ex_gsm,
29  };
30 
31  return &f;
32 }
int offset
Definition: frame.h:156
const char * src
Definition: frame.h:158
#define GSM_SAMPLES
Definition: codec_gsm.c:52
static struct ast_format f[]
Definition: format_g726.c:181
int mallocd
Definition: frame.h:152
Data structure associated with a single frame of data.
Definition: frame.h:142
enum ast_frame_type frametype
Definition: frame.h:144
union ast_frame::@172 data
#define AST_FORMAT_GSM
Definition: frame.h:244
int samples
Definition: frame.h:150
static struct ast_frame * gsm_sample(void)
Definition: ex_gsm.h:17
static uint8_t ex_gsm[]
Definition: ex_gsm.h:10