Thu Apr 28 2011 17:13:54

Asterisk developer's documentation


ex_alaw.h File Reference

8-bit 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_framealaw_sample (void)

Variables

static uint8_t ex_alaw []

Detailed Description

8-bit data

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_alaw.h.


Function Documentation

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

Definition at line 23 of file ex_alaw.h.

References ARRAY_LEN, AST_FORMAT_ALAW, AST_FRAME_VOICE, ex_alaw, f, ast_frame::frametype, and ast_frame::samples.

{
   static struct ast_frame f = {
      .frametype = AST_FRAME_VOICE,
      .subclass = AST_FORMAT_ALAW,
      .datalen = sizeof(ex_alaw),
      .samples = ARRAY_LEN(ex_alaw),
      .mallocd = 0,
      .offset = 0,
      .src = __PRETTY_FUNCTION__,
      .data.ptr = ex_alaw,
   };

   return &f;
}

Variable Documentation

uint8_t ex_alaw[] [static]

Definition at line 10 of file ex_alaw.h.

Referenced by alaw_sample().