ex_gsm.h

Go to the documentation of this file.
00001 /*! \file
00002  * \brief 8-bit raw 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_gsm[] = {
00011    0xda, 0xa6, 0xac, 0x2d, 0xa3, 0x50, 0x00, 0x49, 0x24, 0x92,
00012    0x49, 0x24, 0x50, 0x40, 0x49, 0x24, 0x92, 0x37, 0x24, 0x52,
00013    0x00, 0x49, 0x24, 0x92, 0x47, 0x24, 0x50, 0x80, 0x46, 0xe3,
00014    0x6d, 0xb8, 0xdc,
00015 };
00016 
00017 static struct ast_frame *gsm_sample(void)
00018 {
00019    static struct ast_frame f = {
00020       .frametype = AST_FRAME_VOICE,
00021       .datalen = sizeof(ex_gsm),
00022       /* All frames are 20 ms long */
00023       .samples = GSM_SAMPLES,
00024       .mallocd = 0,
00025       .offset = 0,
00026       .src = __PRETTY_FUNCTION__,
00027       .data.ptr = ex_gsm,
00028    };
00029 
00030    f.subclass.format = ast_format_gsm;
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