Thu Apr 28 2011 16:57:09

Asterisk developer's documentation


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_framespeex_sample (void)

Variables

static uint8_t ex_speex []

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* 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, f, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, SPEEX_SAMPLES, and ast_frame::src.

{
   static struct ast_frame f = {
      .frametype = AST_FRAME_VOICE,
      .subclass = AST_FORMAT_SPEEX,
      .datalen = sizeof(ex_speex),
      /* All frames are 20 ms long */
      .samples = SPEEX_SAMPLES,
      .mallocd = 0,
      .offset = 0,
      .src = __PRETTY_FUNCTION__,
      .data.ptr = ex_speex,
   };

   return &f;
}

Variable Documentation

uint8_t ex_speex[] [static]

Definition at line 10 of file ex_speex.h.

Referenced by speex_sample().