Wed Jan 27 20:02:38 2016

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, read]

Definition at line 18 of file ex_adpcm.h.

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

00019 {
00020    static struct ast_frame f = {
00021       .frametype = AST_FRAME_VOICE,
00022       .subclass.codec = AST_FORMAT_ADPCM,
00023       .datalen = sizeof(ex_adpcm),
00024       .samples = ARRAY_LEN(ex_adpcm) * 2,
00025       .mallocd = 0,
00026       .offset = 0,
00027       .src = __PRETTY_FUNCTION__,
00028       .data.ptr = ex_adpcm,
00029    };
00030 
00031    return &f;
00032 }


Variable Documentation

uint8_t ex_adpcm[] [static]

Definition at line 10 of file ex_adpcm.h.

Referenced by adpcm_sample().


Generated on 27 Jan 2016 for Asterisk - The Open Source Telephony Project by  doxygen 1.6.1