Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


ex_alaw.h File Reference

8-bit data More...

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

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.

24 {
25  static struct ast_frame f = {
26  .frametype = AST_FRAME_VOICE,
27  .subclass.codec = AST_FORMAT_ALAW,
28  .datalen = sizeof(ex_alaw),
30  .mallocd = 0,
31  .offset = 0,
32  .src = __PRETTY_FUNCTION__,
33  .data.ptr = ex_alaw,
34  };
35 
36  return &f;
37 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
#define AST_FORMAT_ALAW
Definition: frame.h:248
static uint8_t ex_alaw[]
Definition: ex_alaw.h:10
static struct ast_format f[]
Definition: format_g726.c:181
Data structure associated with a single frame of data.
Definition: frame.h:142
int samples
Definition: frame.h:150

Variable Documentation

uint8_t ex_alaw[]
static

Definition at line 10 of file ex_alaw.h.

Referenced by alaw_sample().