Asterisk - The Open Source Telephony Project GIT-master-7e7a603
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.
Definition: format_cache.c:136
@ AST_FRAME_VOICE
struct ast_format * format
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
union ast_frame::@226 data
enum ast_frame_type frametype
const char * src

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.
Definition: format_cache.c:131

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.

Referenced by speex_sample().

◆ ex_speex16

uint8_t ex_speex16[]
static

Definition at line 35 of file ex_speex.h.

Referenced by speex16_sample().