Asterisk - The Open Source Telephony Project GIT-master-a358458
Functions | Variables
slin.h File Reference
This graph shows which files directly or indirectly include this file:

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

◆ slin16_sample()

static struct ast_frame * slin16_sample ( void  )
inlinestatic

Definition at line 81 of file slin.h.

82{
83 static struct ast_frame f = {
85 .datalen = sizeof(ex_slin16),
87 .mallocd = 0,
88 .offset = 0,
89 .src = __PRETTY_FUNCTION__,
90 .data.ptr = ex_slin16,
91 };
92
94
95 return &f;
96}
struct ast_format * ast_format_slin16
Built-in cached signed linear 16kHz format.
Definition: format_cache.c:51
@ AST_FRAME_VOICE
static uint16_t ex_slin16[]
Definition: slin.h:41
struct ast_format * format
Data structure associated with a single frame of data.
struct ast_frame_subclass subclass
enum ast_frame_type frametype
#define ARRAY_LEN(a)
Definition: utils.h:666

References ARRAY_LEN, ast_format_slin16, AST_FRAME_VOICE, ex_slin16, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

◆ slin8_sample()

static struct ast_frame * slin8_sample ( void  )
inlinestatic

Definition at line 64 of file slin.h.

65{
66 static struct ast_frame f = {
68 .datalen = sizeof(ex_slin8),
70 .mallocd = 0,
71 .offset = 0,
72 .src = __PRETTY_FUNCTION__,
73 .data.ptr = ex_slin8,
74 };
75
77
78 return &f;
79}
struct ast_format * ast_format_slin
Built-in cached signed linear 8kHz format.
Definition: format_cache.c:41
static uint16_t ex_slin8[]
Definition: slin.h:28

References ARRAY_LEN, ast_format_slin, AST_FRAME_VOICE, ex_slin8, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

Variable Documentation

◆ ex_slin16

uint16_t ex_slin16[]
static

Definition at line 41 of file slin.h.

Referenced by slin16_sample().

◆ ex_slin8

uint16_t ex_slin8[]
static

Definition at line 28 of file slin.h.

Referenced by slin8_sample().