Mon Mar 19 11:30:27 2012

Asterisk developer's documentation


ex_g722.h

Go to the documentation of this file.
00001 /*! \file
00002  * \brief 8-bit 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_g722[] = {
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    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00017    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00018    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00019    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00020    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00021    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00022    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00023    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00024    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00025    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00026    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00027    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00028    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00029    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00030    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
00031 };
00032 
00033 static struct ast_frame *g722_sample(void)
00034 {
00035    static struct ast_frame f = {
00036       .frametype = AST_FRAME_VOICE,
00037       .subclass.codec = AST_FORMAT_G722,
00038       .datalen = sizeof(ex_g722),
00039       .samples = ARRAY_LEN(ex_g722),
00040       .mallocd = 0,
00041       .offset = 0,
00042       .src = __PRETTY_FUNCTION__,
00043       .data.ptr = ex_g722,
00044    };
00045 
00046    return &f;
00047 }

Generated on Mon Mar 19 11:30:27 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7