Asterisk - The Open Source Telephony Project GIT-master-55f4e6d
ex_adpcm.h
Go to the documentation of this file.
1/*! \file
2 * \brief 4-bit ADPCM data
3 *
4 * Copyright (C) 2008, Digium, Inc.
5 *
6 * Distributed under the terms of the GNU General Public License
7 *
8 */
9
10static uint8_t ex_adpcm[] = {
11 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
12 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
13 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
14 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
15 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
16};
17
18static struct ast_frame *adpcm_sample(void)
19{
20 static struct ast_frame f = {
22 .datalen = sizeof(ex_adpcm),
24 .mallocd = 0,
25 .offset = 0,
26 .src = __PRETTY_FUNCTION__,
27 .data.ptr = ex_adpcm,
28 };
29
31
32 return &f;
33}
static uint8_t ex_adpcm[]
Definition: ex_adpcm.h:10
static struct ast_frame * adpcm_sample(void)
Definition: ex_adpcm.h:18
struct ast_format * ast_format_adpcm
Built-in cached adpcm format.
Definition: format_cache.c:101
@ AST_FRAME_VOICE
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:666