Wed Jan 8 2020 09:50:11

Asterisk developer's documentation


ex_ulaw.h File Reference

8-bit data More...

Go to the source code of this file.

Functions

static struct ast_frameulaw_sample (void)
 

Variables

static uint8_t ex_ulaw []
 

Detailed Description

8-bit data

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_ulaw.h.

Function Documentation

static struct ast_frame* ulaw_sample ( void  )
static

Definition at line 23 of file ex_ulaw.h.

References ARRAY_LEN, AST_FORMAT_ULAW, AST_FRAME_VOICE, ex_ulaw, 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_ULAW,
28  .datalen = sizeof(ex_ulaw),
30  .mallocd = 0,
31  .offset = 0,
32  .src = __PRETTY_FUNCTION__,
33  .data.ptr = ex_ulaw,
34  };
35 
36  return &f;
37 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static uint8_t ex_ulaw[]
Definition: ex_ulaw.h:10
#define AST_FORMAT_ULAW
Definition: frame.h:246
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_ulaw[]
static

Definition at line 10 of file ex_ulaw.h.

Referenced by ulaw_sample().