
Go to the source code of this file.
Functions | |
| static struct ast_frame * | slin16_sample (void) |
| static struct ast_frame * | slin8_sample (void) |
Variables | |
| static uint16_t | ex_slin16 [] |
| static uint16_t | ex_slin8 [] |
| static struct ast_frame* slin16_sample | ( | void | ) | [static, read] |
Definition at line 77 of file slin.h.
References ARRAY_LEN, ast_format_set(), AST_FORMAT_SLINEAR16, AST_FRAME_VOICE, ex_slin16, 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_slin16) * 2,
.samples = ARRAY_LEN(ex_slin16),
.mallocd = 0,
.offset = 0,
.src = __PRETTY_FUNCTION__,
.data.ptr = ex_slin16,
};
ast_format_set(&f.subclass.format, AST_FORMAT_SLINEAR16, 0);
return &f;
}
| static struct ast_frame* slin8_sample | ( | void | ) | [static, read] |
Definition at line 61 of file slin.h.
References ARRAY_LEN, ast_format_set(), AST_FORMAT_SLINEAR, AST_FRAME_VOICE, ex_slin8, 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_slin8) * 2,
.samples = ARRAY_LEN(ex_slin8),
.mallocd = 0,
.offset = 0,
.src = __PRETTY_FUNCTION__,
.data.ptr = ex_slin8,
};
ast_format_set(&f.subclass.format, AST_FORMAT_SLINEAR, 0);
return &f;
}
uint16_t ex_slin16[] [static] |
Definition at line 38 of file slin.h.
Referenced by slin16_sample().
uint16_t ex_slin8[] [static] |
Definition at line 25 of file slin.h.
Referenced by slin8_sample().