Sun May 20 06:37:22 2012

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_set(), AST_FORMAT_SLINEAR16, AST_FRAME_VOICE, ex_slin16, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

00078 {
00079    static struct ast_frame f = {
00080       .frametype = AST_FRAME_VOICE,
00081       .datalen = sizeof(ex_slin16) * 2,
00082       .samples = ARRAY_LEN(ex_slin16),
00083       .mallocd = 0,
00084       .offset = 0,
00085       .src = __PRETTY_FUNCTION__,
00086       .data.ptr = ex_slin16,
00087    };
00088 
00089    ast_format_set(&f.subclass.format, AST_FORMAT_SLINEAR16, 0);
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_set(), AST_FORMAT_SLINEAR, AST_FRAME_VOICE, ex_slin8, ast_frame_subclass::format, ast_frame::frametype, ast_frame::samples, and ast_frame::subclass.

00062 {
00063    static struct ast_frame f = {
00064       .frametype = AST_FRAME_VOICE,
00065       .datalen = sizeof(ex_slin8) * 2,
00066       .samples = ARRAY_LEN(ex_slin8),
00067       .mallocd = 0,
00068       .offset = 0,
00069       .src = __PRETTY_FUNCTION__,
00070       .data.ptr = ex_slin8,
00071    };
00072 
00073    ast_format_set(&f.subclass.format, AST_FORMAT_SLINEAR, 0);
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 Sun May 20 06:37:22 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6