Thu Apr 28 2011 17:14:03

Asterisk developer's documentation


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

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, f, ast_frame::frametype, and ast_frame::samples.

{
   static struct ast_frame f = {
      .frametype = AST_FRAME_VOICE,
      .subclass = AST_FORMAT_SLINEAR16,
      .datalen = sizeof(ex_slin16) * 2,
      .samples = ARRAY_LEN(ex_slin16),
      .mallocd = 0,
      .offset = 0,
      .src = __PRETTY_FUNCTION__,
      .data.ptr = ex_slin16,
   };

   return &f;
}
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, f, ast_frame::frametype, and ast_frame::samples.

{
   static struct ast_frame f = {
      .frametype = AST_FRAME_VOICE,
      .subclass = AST_FORMAT_SLINEAR,
      .datalen = sizeof(ex_slin8) * 2,
      .samples = ARRAY_LEN(ex_slin8),
      .mallocd = 0,
      .offset = 0,
      .src = __PRETTY_FUNCTION__,
      .data.ptr = ex_slin8,
   };

   return &f;
}

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