Asterisk - The Open Source Telephony Project GIT-master-27fb039
Loading...
Searching...
No Matches
Functions | Variables
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

◆ alaw_sample()

static struct ast_frame * alaw_sample ( void  )
static

Definition at line 26 of file ex_alaw.h.

27{
28 static struct ast_frame f = {
30 .datalen = sizeof(ex_alaw),
32 .mallocd = 0,
33 .offset = 0,
34 .src = __PRETTY_FUNCTION__,
35 .data.ptr = ex_alaw,
36 };
38 return &f;
39}
static uint8_t ex_alaw[]
Definition ex_alaw.h:13
struct ast_format * ast_format_alaw
Built-in cached alaw format.
struct ast_format * format
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
enum ast_frame_type frametype
#define ARRAY_LEN(a)
Definition utils.h:706

References ARRAY_LEN, ast_format_alaw, AST_FRAME_VOICE, ex_alaw, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

Variable Documentation

◆ ex_alaw

uint8_t ex_alaw[]
static

Definition at line 13 of file ex_alaw.h.

13 {
14 0x00, 0x03, 0x06, 0x09, 0x0c, 0x0f, 0x12, 0x15,
15 0x10, 0x18, 0x1b, 0x1e, 0x21, 0x24, 0x27, 0x2a,
16 0x20, 0x2d, 0x30, 0x33, 0x36, 0x39, 0x3c, 0x3f,
17 0x30, 0x42, 0x45, 0x48, 0x4b, 0x4e, 0x51, 0x54,
18 0x40, 0x57, 0x5a, 0x5d, 0x60, 0x63, 0x66, 0x69,
19 0x50, 0x6c, 0x6f, 0x72, 0x75, 0x78, 0x7b, 0x7e,
20 0x60, 0x81, 0x84, 0x87, 0x8a, 0x8d, 0x90, 0x93,
21 0x70, 0x96, 0x99, 0x9c, 0x9f, 0xa2, 0xa5, 0xa8,
22 0x80, 0xab, 0xae, 0xb1, 0xb4, 0xb7, 0xba, 0xbd,
23 0x90, 0xc0, 0xc3, 0xc6, 0xc9, 0xcc, 0xcf, 0xd2,
24};

Referenced by alaw_sample().