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

4-bit ADPCM 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_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

◆ adpcm_sample()

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, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

19 {
20  static struct ast_frame f = {
22  .datalen = sizeof(ex_adpcm),
23  .samples = ARRAY_LEN(ex_adpcm) * 2,
24  .mallocd = 0,
25  .offset = 0,
26  .src = __PRETTY_FUNCTION__,
27  .data.ptr = ex_adpcm,
28  };
29 
31 
32  return &f;
33 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static uint8_t ex_adpcm[]
Definition: ex_adpcm.h:10
struct ast_frame_subclass subclass
Data structure associated with a single frame of data.
struct ast_format * ast_format_adpcm
Built-in cached adpcm format.
Definition: format_cache.c:106
enum ast_frame_type frametype
struct ast_format * format

Variable Documentation

◆ ex_adpcm

uint8_t ex_adpcm[]
static

Definition at line 10 of file ex_adpcm.h.

Referenced by adpcm_sample().