Tue Aug 20 16:34:33 2013

Asterisk developer's documentation


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       .subclass.codec = AST_FORMAT_GSM,
00022       .datalen = sizeof(ex_gsm),
00023       /* All frames are 20 ms long */
00024       .samples = GSM_SAMPLES,
00025       .mallocd = 0,
00026       .offset = 0,
00027       .src = __PRETTY_FUNCTION__,
00028       .data.ptr = ex_gsm,
00029    };
00030 
00031    return &f;
00032 }

Generated on 20 Aug 2013 for Asterisk - The Open Source Telephony Project by  doxygen 1.6.1