Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


ex_gsm.h File Reference

8-bit raw data More...

Go to the source code of this file.

Functions

static struct ast_framegsm_sample (void)
 

Variables

static uint8_t ex_gsm []
 

Detailed Description

8-bit raw data

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_gsm.h.

Function Documentation

static struct ast_frame* gsm_sample ( void  )
static

Definition at line 17 of file ex_gsm.h.

References AST_FORMAT_GSM, AST_FRAME_VOICE, ast_frame::data, ex_gsm, f, ast_frame::frametype, GSM_SAMPLES, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, and ast_frame::src.

18 {
19  static struct ast_frame f = {
20  .frametype = AST_FRAME_VOICE,
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
union ast_frame::@172 data
#define AST_FORMAT_GSM
Definition: frame.h:244
int samples
Definition: frame.h:150
static uint8_t ex_gsm[]
Definition: ex_gsm.h:10

Variable Documentation

uint8_t ex_gsm[]
static

Definition at line 10 of file ex_gsm.h.

Referenced by gsm_sample().