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, ast_frame_subclass::format, ast_frame::frametype, LPC10_SAMPLES_PER_FRAME, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, ast_frame::src, and ast_frame::subclass.

00015 {
00016    static struct ast_frame f = {
00017       .frametype = AST_FRAME_VOICE,
00018       .datalen = sizeof(ex_lpc10),
00019       /* All frames are 22 ms long (maybe a little more -- why did he choose
00020          LPC10_SAMPLES_PER_FRAME sample frames anyway?? */
00021       .samples = LPC10_SAMPLES_PER_FRAME,
00022       .mallocd = 0,
00023       .offset = 0,
00024       .src = __PRETTY_FUNCTION__,
00025       .data.ptr = ex_lpc10,
00026    };
00027 
00028    f.subclass.format = ast_format_lpc10;
00029 
00030    return &f;
00031 }


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


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