Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


ex_speex.h File Reference

Random Data. More...

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

static struct ast_frame* speex16_sample ( void  )
static

Definition at line 48 of file ex_speex.h.

References AST_FORMAT_SPEEX16, AST_FRAME_VOICE, ast_frame::data, ex_speex16, f, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, and ast_frame::src.

49 {
50  static struct ast_frame f = {
51  .frametype = AST_FRAME_VOICE,
52  .subclass.codec = AST_FORMAT_SPEEX16,
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 
62  return &f;
63 }
int offset
Definition: frame.h:156
static uint8_t ex_speex16[]
Definition: ex_speex.h:34
const char * src
Definition: frame.h:158
#define SPEEX_SAMPLES
Definition: codec_speex.c:82
static struct ast_format f[]
Definition: format_g726.c:181
int mallocd
Definition: frame.h:152
Data structure associated with a single frame of data.
Definition: frame.h:142
union ast_frame::@172 data
int samples
Definition: frame.h:150
#define AST_FORMAT_SPEEX16
Definition: frame.h:301
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, f, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, and ast_frame::src.

18 {
19  static struct ast_frame f = {
20  .frametype = AST_FRAME_VOICE,
21  .subclass.codec = AST_FORMAT_SPEEX,
22  .datalen = sizeof(ex_speex),
23  /* All frames are 20 ms long */
25  .mallocd = 0,
26  .offset = 0,
27  .src = __PRETTY_FUNCTION__,
28  .data.ptr = ex_speex,
29  };
30 
31  return &f;
32 }
int offset
Definition: frame.h:156
const char * src
Definition: frame.h:158
#define AST_FORMAT_SPEEX
Definition: frame.h:260
#define SPEEX_SAMPLES
Definition: codec_speex.c:82
static struct ast_format f[]
Definition: format_g726.c:181
int mallocd
Definition: frame.h:152
Data structure associated with a single frame of data.
Definition: frame.h:142
static uint8_t ex_speex[]
Definition: ex_speex.h:10
union ast_frame::@172 data
int samples
Definition: frame.h:150

Variable Documentation

uint8_t ex_speex[]
static

Definition at line 10 of file ex_speex.h.

Referenced by speex_sample().

uint8_t ex_speex16[]
static

Definition at line 34 of file ex_speex.h.

Referenced by speex16_sample().