ex_speex.h

Go to the documentation of this file.
00001 /*! \file
00002  * \brief Random 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_speex[] = {
00011    0x2e, 0x8e, 0x0f, 0x9a, 0x20, 0000, 0x01, 0x7f, 0xff, 0xff,
00012    0xff, 0xff, 0xff, 0x91, 0000, 0xbf, 0xff, 0xff, 0xff, 0xff,
00013    0xff, 0xdc, 0x80, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
00014    0x98, 0x7f, 0xff, 0xff, 0xff, 0xe8, 0xff, 0xf7, 0x80,
00015 };
00016 
00017 static struct ast_frame *speex_sample(void)
00018 {
00019    static struct ast_frame f = {
00020       .frametype = AST_FRAME_VOICE,
00021       .datalen = sizeof(ex_speex),
00022       /* All frames are 20 ms long */
00023       .samples = SPEEX_SAMPLES,
00024       .mallocd = 0,
00025       .offset = 0,
00026       .src = __PRETTY_FUNCTION__,
00027       .data.ptr = ex_speex,
00028    };
00029 
00030    f.subclass.format = ast_format_speex;
00031 
00032    return &f;
00033 }
00034 
00035 static uint8_t ex_speex16[] = {
00036    0x3f, 0x78, 0x89, 0x14, 0x4a, 0x00, 0x00, 0x7f, 0xff, 0xff,
00037    0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x92,
00038    0x06, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
00039    0xff, 0xff, 0xff, 0xc0, 0x30, 0x5f, 0xff, 0xfd, 0xbb, 0xee,
00040    0x30, 0x56, 0xff, 0xf8, 0x74, 0x54, 0x31, 0xe6, 0xfe, 0x71,
00041    0xdc, 0xca, 0x44, 0x6a, 0x43, 0x75, 0xae, 0x31, 0x7a, 0x50,
00042    0xd9, 0xfc, 0x93, 0x13, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
00043    0xab, 0xab, 0xab, 0xab, 0x3a, 0xba, 0xba, 0xba, 0xba, 0xba,
00044    0xba, 0xba, 0xba, 0xba, 0xb0, 0xab, 0xab, 0xab, 0xd9, 0x37,
00045    0xab, 0xab, 0xb4, 0x34, 0xe9, 0x0b, 0xd4, 0x2f, 0x13, 0x4c,
00046    0xf0, 0xef, 0x8d, 0xdd, 0x99, 0xc7
00047 };
00048 
00049 static struct ast_frame *speex16_sample(void)
00050 {
00051    static struct ast_frame f = {
00052       .frametype = AST_FRAME_VOICE,
00053       .datalen = sizeof(ex_speex16),
00054       /* All frames are 20 ms long */
00055       .samples = SPEEX_SAMPLES,
00056       .mallocd = 0,
00057       .offset = 0,
00058       .src = __PRETTY_FUNCTION__,
00059       .data.ptr = ex_speex16,
00060    };
00061 
00062    f.subclass.format = ast_format_speex16;
00063 
00064    return &f;
00065 }

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