Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
ex_ulaw.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_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

◆ ulaw_sample()

static struct ast_frame* ulaw_sample ( void  )
static

Definition at line 26 of file ex_ulaw.h.

References ARRAY_LEN, ast_format_ulaw, AST_FRAME_VOICE, ex_ulaw, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

27 {
28  static struct ast_frame f = {
30  .datalen = sizeof(ex_ulaw),
32  .mallocd = 0,
33  .offset = 0,
34  .src = __PRETTY_FUNCTION__,
35  .data.ptr = ex_ulaw,
36  };
37 
39 
40  return &f;
41 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
struct ast_format * ast_format_ulaw
Built-in cached ulaw format.
Definition: format_cache.c:86
struct ast_frame_subclass subclass
static uint8_t ex_ulaw[]
Definition: ex_ulaw.h:13
Data structure associated with a single frame of data.
enum ast_frame_type frametype
struct ast_format * format

Variable Documentation

◆ ex_ulaw

uint8_t ex_ulaw[]
static

Definition at line 13 of file ex_ulaw.h.

Referenced by ulaw_sample().