Thu Apr 28 2011 16:57:09

Asterisk developer's documentation


ex_lpc10.h File Reference

Copyright (C) 2008, Digium, Inc. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static struct ast_framelpc10_sample (void)

Variables

static uint8_t ex_lpc10 []

Detailed Description

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_lpc10.h.


Function Documentation

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

Definition at line 14 of file ex_lpc10.h.

References AST_FORMAT_LPC10, AST_FRAME_VOICE, ast_frame::data, ex_lpc10, f, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, and ast_frame::src.

{
   static struct ast_frame f = {
      .frametype = AST_FRAME_VOICE,
      .subclass = AST_FORMAT_LPC10,
      .datalen = sizeof(ex_lpc10),
      /* All frames are 22 ms long (maybe a little more -- why did he choose
         LPC10_SAMPLES_PER_FRAME sample frames anyway?? */
      .samples = LPC10_SAMPLES_PER_FRAME,
      .mallocd = 0,
      .offset = 0,
      .src = __PRETTY_FUNCTION__,
      .data.ptr = ex_lpc10,
   };

   return &f;
}

Variable Documentation

uint8_t ex_lpc10[] [static]
Initial value:
 {
   0x01, 0x08, 0x31, 0x08, 0x31, 0x80, 0x30,
}

Definition at line 10 of file ex_lpc10.h.

Referenced by lpc10_sample().