Thu Apr 28 2011 17:13:54

Asterisk developer's documentation


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

static struct ast_frame* adpcm_sample ( void  ) [static, read]

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.

{
   static struct ast_frame f = {
      .frametype = AST_FRAME_VOICE,
      .subclass = AST_FORMAT_ADPCM,
      .datalen = sizeof(ex_adpcm),
      .samples = ARRAY_LEN(ex_adpcm) * 2,
      .mallocd = 0,
      .offset = 0,
      .src = __PRETTY_FUNCTION__,
      .data.ptr = ex_adpcm,
   };

   return &f;
}

Variable Documentation

uint8_t ex_adpcm[] [static]

Definition at line 10 of file ex_adpcm.h.

Referenced by adpcm_sample().