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

Copyright (C) 2008, Digium, Inc. More...

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

Go to the source code of this file.

Functions

static struct ast_framelpc10_sample (void)
 

Variables

static uint8_t ex_lpc10 []
 

Detailed Description

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_lpc10.h.

Function Documentation

◆ lpc10_sample()

static struct ast_frame* lpc10_sample ( void  )
static

Definition at line 14 of file ex_lpc10.h.

References ast_format_lpc10, AST_FRAME_VOICE, ast_frame::data, ex_lpc10, ast_frame_subclass::format, ast_frame::frametype, LPC10_SAMPLES_PER_FRAME, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, ast_frame::src, and ast_frame::subclass.

15 {
16  static struct ast_frame f = {
18  .datalen = sizeof(ex_lpc10),
19  /* All frames are 22 ms long (maybe a little more -- why did he choose
20  LPC10_SAMPLES_PER_FRAME sample frames anyway?? */
22  .mallocd = 0,
23  .offset = 0,
24  .src = __PRETTY_FUNCTION__,
25  .data.ptr = ex_lpc10,
26  };
27 
29 
30  return &f;
31 }
#define LPC10_SAMPLES_PER_FRAME
Definition: lpc10.h:36
struct ast_frame_subclass subclass
struct ast_format * ast_format_lpc10
Built-in cached ilbc format.
Definition: format_cache.c:131
const char * src
static uint8_t ex_lpc10[]
Definition: ex_lpc10.h:10
Data structure associated with a single frame of data.
union ast_frame::@263 data
enum ast_frame_type frametype
struct ast_format * format

Variable Documentation

◆ ex_lpc10

uint8_t ex_lpc10[]
static
Initial value:
= {
0x01, 0x08, 0x31, 0x08, 0x31, 0x80, 0x30,
}

Definition at line 10 of file ex_lpc10.h.

Referenced by lpc10_sample().