Asterisk - The Open Source Telephony Project  18.5.0
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.

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.

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 }
static uint8_t ex_speex16[]
Definition: ex_speex.h:35
struct ast_frame_subclass subclass
const char * src
struct ast_format * ast_format_speex16
Built-in cached speex at 16kHz format.
Definition: format_cache.c:141
#define SPEEX_SAMPLES
Definition: codec_speex.c:87
Data structure associated with a single frame of data.
union ast_frame::@263 data
enum ast_frame_type frametype
struct ast_format * format

◆ speex_sample()

static struct ast_frame* speex_sample ( void  )
static

Definition at line 17 of file ex_speex.h.

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.

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 }
struct ast_frame_subclass subclass
const char * src
#define SPEEX_SAMPLES
Definition: codec_speex.c:87
struct ast_format * ast_format_speex
Built-in cached speex format.
Definition: format_cache.c:136
Data structure associated with a single frame of data.
union ast_frame::@263 data
static uint8_t ex_speex[]
Definition: ex_speex.h:10
enum ast_frame_type frametype
struct ast_format * format

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().