Asterisk - The Open Source Telephony Project  18.5.0
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  )
static

Definition at line 81 of file slin.h.

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.

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 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
struct ast_frame_subclass subclass
static uint16_t ex_slin16[]
Definition: slin.h:41
Data structure associated with a single frame of data.
struct ast_format * ast_format_slin16
Built-in cached signed linear 16kHz format.
Definition: format_cache.c:51
enum ast_frame_type frametype
struct ast_format * format

◆ slin8_sample()

static struct ast_frame* slin8_sample ( void  )
static

Definition at line 64 of file slin.h.

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.

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 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
struct ast_frame_subclass subclass
static uint16_t ex_slin8[]
Definition: slin.h:28
Data structure associated with a single frame of data.
enum ast_frame_type frametype
struct ast_format * format
struct ast_format * ast_format_slin
Built-in cached signed linear 8kHz format.
Definition: format_cache.c:41

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