2 * \brief 8-bit raw data
4 * Copyright (C) 2008, Digium, Inc.
6 * Distributed under the terms of the GNU General Public License
10 static uint8_t ex_gsm[] = {
11 0xda, 0xa6, 0xac, 0x2d, 0xa3, 0x50, 0x00, 0x49, 0x24, 0x92,
12 0x49, 0x24, 0x50, 0x40, 0x49, 0x24, 0x92, 0x37, 0x24, 0x52,
13 0x00, 0x49, 0x24, 0x92, 0x47, 0x24, 0x50, 0x80, 0x46, 0xe3,
17 static struct ast_frame *gsm_sample(void)
19 static struct ast_frame f = {
20 .frametype = AST_FRAME_VOICE,
21 .datalen = sizeof(ex_gsm),
22 /* All frames are 20 ms long */
23 .samples = GSM_SAMPLES,
26 .src = __PRETTY_FUNCTION__,
30 ast_format_set(&f.subclass.format, AST_FORMAT_GSM, 0);