2 * \brief 4-bit G.726 data
4 * Copyright (C) 2008, Digium, Inc.
6 * Distributed under the terms of the GNU General Public License
10 static uint8_t ex_g726[] = {
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,
18 static struct ast_frame *g726_sample(void)
20 static struct ast_frame f = {
21 .frametype = AST_FRAME_VOICE,
22 .subclass.codec = AST_FORMAT_G726,
23 .datalen = sizeof(ex_g726),
24 .samples = ARRAY_LEN(ex_g726) * 2, /* 2 samples per byte */
27 .src = __PRETTY_FUNCTION__,