Several changes to codec_dahdi to play nice with G723.
[asterisk/asterisk.git] / codecs / ex_speex.h
1 /*! \file
2  * \brief Random Data
3  *
4  * Copyright (C) 2008, Digium, Inc.
5  *
6  * Distributed under the terms of the GNU General Public License
7  *
8  */
9
10 static uint8_t ex_speex[] = {
11         0x2e, 0x8e, 0x0f, 0x9a, 0x20, 0000, 0x01, 0x7f, 0xff, 0xff, 
12         0xff, 0xff, 0xff, 0x91, 0000, 0xbf, 0xff, 0xff, 0xff, 0xff, 
13         0xff, 0xdc, 0x80, 0x5f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 
14         0x98, 0x7f, 0xff, 0xff, 0xff, 0xe8, 0xff, 0xf7, 0x80,
15 };
16
17 static struct ast_frame *speex_sample(void)
18 {
19         static struct ast_frame f = {
20                 .frametype = AST_FRAME_VOICE,
21                 .subclass = AST_FORMAT_SPEEX,
22                 .datalen = sizeof(ex_speex),
23                 /* All frames are 20 ms long */
24                 .samples = SPEEX_SAMPLES,
25                 .mallocd = 0,
26                 .offset = 0,
27                 .src = __PRETTY_FUNCTION__,
28                 .data.ptr = ex_speex,
29         };
30
31         return &f;
32 }