Asterisk - The Open Source Telephony Project GIT-master-a63eec2
Loading...
Searching...
No Matches
Functions | Variables
ex_speex.h File Reference

Random Data. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static struct ast_framespeex16_sample (void)
 
static struct ast_framespeex_sample (void)
 

Variables

static uint8_t ex_speex []
 
static uint8_t ex_speex16 []
 

Detailed Description

Random Data.

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_speex.h.

Function Documentation

◆ speex16_sample()

static struct ast_frame * speex16_sample ( void  )
static

Definition at line 49 of file ex_speex.h.

50{
51 static struct ast_frame f = {
53 .datalen = sizeof(ex_speex16),
54 /* All frames are 20 ms long */
56 .mallocd = 0,
57 .offset = 0,
58 .src = __PRETTY_FUNCTION__,
59 .data.ptr = ex_speex16,
60 };
61
63
64 return &f;
65}
#define SPEEX_SAMPLES
Definition codec_speex.c:87
static uint8_t ex_speex16[]
Definition ex_speex.h:35
struct ast_format * ast_format_speex16
Built-in cached speex at 16kHz format.
struct ast_format * format
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
enum ast_frame_type frametype
union ast_frame::@239 data

References ast_format_speex16, AST_FRAME_VOICE, ast_frame::data, ex_speex16, ast_frame_subclass::format, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, ast_frame::src, and ast_frame::subclass.

◆ speex_sample()

static struct ast_frame * speex_sample ( void  )
static

Definition at line 17 of file ex_speex.h.

18{
19 static struct ast_frame f = {
21 .datalen = sizeof(ex_speex),
22 /* All frames are 20 ms long */
24 .mallocd = 0,
25 .offset = 0,
26 .src = __PRETTY_FUNCTION__,
27 .data.ptr = ex_speex,
28 };
29
31
32 return &f;
33}
static uint8_t ex_speex[]
Definition ex_speex.h:10
struct ast_format * ast_format_speex
Built-in cached speex format.

References ast_format_speex, AST_FRAME_VOICE, ast_frame::data, ex_speex, ast_frame_subclass::format, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, ast_frame::src, and ast_frame::subclass.

Variable Documentation

◆ ex_speex

uint8_t ex_speex[]
static

Definition at line 10 of file ex_speex.h.

10 {
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};

Referenced by speex_sample().

◆ ex_speex16

uint8_t ex_speex16[]
static

Definition at line 35 of file ex_speex.h.

35 {
36 0x3f, 0x78, 0x89, 0x14, 0x4a, 0x00, 0x00, 0x7f, 0xff, 0xff,
37 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x92,
38 0x06, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
39 0xff, 0xff, 0xff, 0xc0, 0x30, 0x5f, 0xff, 0xfd, 0xbb, 0xee,
40 0x30, 0x56, 0xff, 0xf8, 0x74, 0x54, 0x31, 0xe6, 0xfe, 0x71,
41 0xdc, 0xca, 0x44, 0x6a, 0x43, 0x75, 0xae, 0x31, 0x7a, 0x50,
42 0xd9, 0xfc, 0x93, 0x13, 0xab, 0xab, 0xab, 0xab, 0xab, 0xab,
43 0xab, 0xab, 0xab, 0xab, 0x3a, 0xba, 0xba, 0xba, 0xba, 0xba,
44 0xba, 0xba, 0xba, 0xba, 0xb0, 0xab, 0xab, 0xab, 0xd9, 0x37,
45 0xab, 0xab, 0xb4, 0x34, 0xe9, 0x0b, 0xd4, 0x2f, 0x13, 0x4c,
46 0xf0, 0xef, 0x8d, 0xdd, 0x99, 0xc7
47};

Referenced by speex16_sample().