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       .datalen = sizeof(ex_adpcm),
00023       .samples = ARRAY_LEN(ex_adpcm) * 2,
00024       .mallocd = 0,
00025       .offset = 0,
00026       .src = __PRETTY_FUNCTION__,
00027       .data.ptr = ex_adpcm,
00028    };
00029 
00030    f.subclass.format = ast_format_adpcm;
00031 
00032    return &f;
00033 }

Generated on Thu Apr 16 06:27:33 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6