Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


ex_ilbc.h File Reference

Raw 8-bit data. More...

Go to the source code of this file.

Functions

static struct ast_frameilbc_sample (void)
 

Variables

static uint8_t ex_ilbc []
 

Detailed Description

Raw 8-bit data.

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_ilbc.h.

Function Documentation

static struct ast_frame* ilbc_sample ( void  )
static

Definition at line 18 of file ex_ilbc.h.

References AST_FORMAT_ILBC, AST_FRAME_VOICE, ast_frame::data, ex_ilbc, f, ast_frame::frametype, ILBC_SAMPLES, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, and ast_frame::src.

19 {
20  static struct ast_frame f = {
21  .frametype = AST_FRAME_VOICE,
22  .subclass.codec = AST_FORMAT_ILBC,
23  .datalen = sizeof(ex_ilbc),
24  /* All frames are 30 ms long */
26  .mallocd = 0,
27  .offset = 0,
28  .src = __PRETTY_FUNCTION__,
29  .data.ptr = ex_ilbc,
30  };
31 
32  return &f;
33 }
int offset
Definition: frame.h:156
static uint8_t ex_ilbc[]
Definition: ex_ilbc.h:10
const char * src
Definition: frame.h:158
#define ILBC_SAMPLES
Definition: codec_ilbc.c:48
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_ILBC
Definition: frame.h:262
int samples
Definition: frame.h:150

Variable Documentation

uint8_t ex_ilbc[]
static

Definition at line 10 of file ex_ilbc.h.

Referenced by ilbc_sample().