Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


ex_g722.h File Reference

8-bit data More...

Go to the source code of this file.

Functions

static struct ast_frameg722_sample (void)
 

Variables

static uint8_t ex_g722 []
 

Detailed Description

8-bit data

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_g722.h.

Function Documentation

static struct ast_frame* g722_sample ( void  )
static

Definition at line 33 of file ex_g722.h.

References ARRAY_LEN, AST_FORMAT_G722, AST_FRAME_VOICE, ex_g722, f, ast_frame::frametype, and ast_frame::samples.

34 {
35  static struct ast_frame f = {
36  .frametype = AST_FRAME_VOICE,
37  .subclass.codec = AST_FORMAT_G722,
38  .datalen = sizeof(ex_g722),
40  .mallocd = 0,
41  .offset = 0,
42  .src = __PRETTY_FUNCTION__,
43  .data.ptr = ex_g722,
44  };
45 
46  return &f;
47 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static struct ast_format f[]
Definition: format_g726.c:181
Data structure associated with a single frame of data.
Definition: frame.h:142
#define AST_FORMAT_G722
Definition: frame.h:266
static uint8_t ex_g722[]
Definition: ex_g722.h:10
int samples
Definition: frame.h:150

Variable Documentation

uint8_t ex_g722[]
static

Definition at line 10 of file ex_g722.h.

Referenced by g722_sample().