Wed Aug 7 17:16:13 2019

Asterisk developer's documentation


slin.h File Reference

Go to the source code of this file.

Functions

static struct ast_frameslin16_sample (void)
static struct ast_frameslin8_sample (void)

Variables

static uint16_t ex_slin16 []
static uint16_t ex_slin8 []

Function Documentation

static struct ast_frame* slin16_sample ( void   )  [static, read]

Definition at line 77 of file slin.h.

References ARRAY_LEN, AST_FORMAT_SLINEAR16, AST_FRAME_VOICE, ex_slin16, ast_frame::frametype, and ast_frame::samples.

00078 {
00079    static struct ast_frame f = {
00080       .frametype = AST_FRAME_VOICE,
00081       .subclass.codec = AST_FORMAT_SLINEAR16,
00082       .datalen = sizeof(ex_slin16) * 2,
00083       .samples = ARRAY_LEN(ex_slin16),
00084       .mallocd = 0,
00085       .offset = 0,
00086       .src = __PRETTY_FUNCTION__,
00087       .data.ptr = ex_slin16,
00088    };
00089 
00090    return &f;
00091 }

static struct ast_frame* slin8_sample ( void   )  [static, read]

Definition at line 61 of file slin.h.

References ARRAY_LEN, AST_FORMAT_SLINEAR, AST_FRAME_VOICE, ex_slin8, ast_frame::frametype, and ast_frame::samples.

00062 {
00063    static struct ast_frame f = {
00064       .frametype = AST_FRAME_VOICE,
00065       .subclass.codec = AST_FORMAT_SLINEAR,
00066       .datalen = sizeof(ex_slin8) * 2,
00067       .samples = ARRAY_LEN(ex_slin8),
00068       .mallocd = 0,
00069       .offset = 0,
00070       .src = __PRETTY_FUNCTION__,
00071       .data.ptr = ex_slin8,
00072    };
00073 
00074    return &f;
00075 }


Variable Documentation

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().


Generated on 7 Aug 2019 for Asterisk - The Open Source Telephony Project by  doxygen 1.6.1