Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


ex_adpcm.h File Reference

4-bit ADPCM data More...

Go to the source code of this file.

Functions

static struct ast_frameadpcm_sample (void)
 

Variables

static uint8_t ex_adpcm []
 

Detailed Description

4-bit ADPCM data

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_adpcm.h.

Function Documentation

static struct ast_frame* adpcm_sample ( void  )
static

Definition at line 18 of file ex_adpcm.h.

References ARRAY_LEN, AST_FORMAT_ADPCM, AST_FRAME_VOICE, ex_adpcm, f, ast_frame::frametype, and ast_frame::samples.

19 {
20  static struct ast_frame f = {
21  .frametype = AST_FRAME_VOICE,
22  .subclass.codec = AST_FORMAT_ADPCM,
23  .datalen = sizeof(ex_adpcm),
24  .samples = ARRAY_LEN(ex_adpcm) * 2,
25  .mallocd = 0,
26  .offset = 0,
27  .src = __PRETTY_FUNCTION__,
28  .data.ptr = ex_adpcm,
29  };
30 
31  return &f;
32 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static uint8_t ex_adpcm[]
Definition: ex_adpcm.h:10
static struct ast_format f[]
Definition: format_g726.c:181
#define AST_FORMAT_ADPCM
Definition: frame.h:252
Data structure associated with a single frame of data.
Definition: frame.h:142
int samples
Definition: frame.h:150

Variable Documentation

uint8_t ex_adpcm[]
static

Definition at line 10 of file ex_adpcm.h.

Referenced by adpcm_sample().