Thu Oct 11 06:47:15 2012

Asterisk developer's documentation


ex_adpcm.h

Go to the documentation of this file.
00001 /*! \file
00002  * \brief 4-bit ADPCM data
00003  *
00004  * Copyright (C) 2008, Digium, Inc.
00005  *
00006  * Distributed under the terms of the GNU General Public License
00007  *
00008  */
00009 
00010 static uint8_t ex_adpcm[] = {
00011    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00012    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00013    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00014    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00015    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00016 };
00017 
00018 static struct ast_frame *adpcm_sample(void)
00019 {
00020    static struct ast_frame f = {
00021       .frametype = AST_FRAME_VOICE,
00022       .subclass = 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 }

Generated on Thu Oct 11 06:47:15 2012 for Asterisk - the Open Source PBX by  doxygen 1.5.6