Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
ex_g722.h File Reference

8-bit data More...

This graph shows which files directly or indirectly include this file:

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

◆ g722_sample()

static struct ast_frame* g722_sample ( void  )
static

Definition at line 36 of file ex_g722.h.

References ARRAY_LEN, ast_format_slin, AST_FRAME_VOICE, ex_g722, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

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 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
struct ast_frame_subclass subclass
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

Variable Documentation

◆ ex_g722

uint8_t ex_g722[]
static

Definition at line 13 of file ex_g722.h.

Referenced by g722_sample().