Mon Jun 27 16:50:53 2011

Asterisk developer's documentation


ex_g726.h

Go to the documentation of this file.
00001 /*! \file
00002  * \brief 4-bit G.726 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_g726[] = {
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 *g726_sample(void)
00019 {
00020    static struct ast_frame f = {
00021       .frametype = AST_FRAME_VOICE,
00022       .subclass.codec = AST_FORMAT_G726,
00023       .datalen = sizeof(ex_g726),
00024       .samples = ARRAY_LEN(ex_g726) * 2, /* 2 samples per byte */
00025       .mallocd = 0,
00026       .offset = 0,
00027       .src = __PRETTY_FUNCTION__,
00028       .data.ptr = ex_g726,
00029    };
00030 
00031    return &f;
00032 }

Generated on Mon Jun 27 16:50:53 2011 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7