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

static struct ast_frame* speex16_sample ( void   )  [static, read]

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.

00050 {
00051    static struct ast_frame f = {
00052       .frametype = AST_FRAME_VOICE,
00053       .datalen = sizeof(ex_speex16),
00054       /* All frames are 20 ms long */
00055       .samples = SPEEX_SAMPLES,
00056       .mallocd = 0,
00057       .offset = 0,
00058       .src = __PRETTY_FUNCTION__,
00059       .data.ptr = ex_speex16,
00060    };
00061 
00062    f.subclass.format = ast_format_speex16;
00063 
00064    return &f;
00065 }

static struct ast_frame* speex_sample ( void   )  [static, read]

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.

00018 {
00019    static struct ast_frame f = {
00020       .frametype = AST_FRAME_VOICE,
00021       .datalen = sizeof(ex_speex),
00022       /* All frames are 20 ms long */
00023       .samples = SPEEX_SAMPLES,
00024       .mallocd = 0,
00025       .offset = 0,
00026       .src = __PRETTY_FUNCTION__,
00027       .data.ptr = ex_speex,
00028    };
00029 
00030    f.subclass.format = ast_format_speex;
00031 
00032    return &f;
00033 }


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 35 of file ex_speex.h.

Referenced by speex16_sample().


Generated on Thu Apr 16 06:30:55 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6