8-bit data More...

Go to the source code of this file.
Functions | |
| static struct ast_frame * | ulaw_sample (void) |
Variables | |
| static uint8_t | ex_ulaw [] |
8-bit data
Copyright (C) 2008, Digium, Inc.
Distributed under the terms of the GNU General Public License
Definition in file ex_ulaw.h.
| static struct ast_frame* ulaw_sample | ( | void | ) | [static, read] |
Definition at line 23 of file ex_ulaw.h.
References ARRAY_LEN, ast_format_set(), AST_FORMAT_ULAW, AST_FRAME_VOICE, ex_ulaw, f, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.
{
static struct ast_frame f = {
.frametype = AST_FRAME_VOICE,
.datalen = sizeof(ex_ulaw),
.samples = ARRAY_LEN(ex_ulaw),
.mallocd = 0,
.offset = 0,
.src = __PRETTY_FUNCTION__,
.data.ptr = ex_ulaw,
};
ast_format_set(&f.subclass.format, AST_FORMAT_ULAW, 0);
return &f;
}
uint8_t ex_ulaw[] [static] |
Definition at line 10 of file ex_ulaw.h.
Referenced by ulaw_sample().