Wed Jan 8 2020 09:50:21

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

Definition at line 77 of file slin.h.

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

78 {
79  static struct ast_frame f = {
80  .frametype = AST_FRAME_VOICE,
81  .subclass.codec = AST_FORMAT_SLINEAR16,
82  .datalen = sizeof(ex_slin16) * 2,
84  .mallocd = 0,
85  .offset = 0,
86  .src = __PRETTY_FUNCTION__,
87  .data.ptr = ex_slin16,
88  };
89 
90  return &f;
91 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static uint16_t ex_slin16[]
Definition: slin.h:38
#define AST_FORMAT_SLINEAR16
Definition: frame.h:272
static struct ast_format f[]
Definition: format_g726.c:181
Data structure associated with a single frame of data.
Definition: frame.h:142
int samples
Definition: frame.h:150
static struct ast_frame* slin8_sample ( void  )
static

Definition at line 61 of file slin.h.

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

62 {
63  static struct ast_frame f = {
64  .frametype = AST_FRAME_VOICE,
65  .subclass.codec = AST_FORMAT_SLINEAR,
66  .datalen = sizeof(ex_slin8) * 2,
68  .mallocd = 0,
69  .offset = 0,
70  .src = __PRETTY_FUNCTION__,
71  .data.ptr = ex_slin8,
72  };
73 
74  return &f;
75 }
#define ARRAY_LEN(a)
Definition: isdn_lib.c:42
static struct ast_format f[]
Definition: format_g726.c:181
static uint16_t ex_slin8[]
Definition: slin.h:25
#define AST_FORMAT_SLINEAR
Definition: frame.h:254
Data structure associated with a single frame of data.
Definition: frame.h:142
int samples
Definition: frame.h:150

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