Mon Mar 19 11:30:47 2012

Asterisk developer's documentation


ex_gsm.h File Reference

8-bit raw data More...

Go to the source code of this file.

Functions

static struct ast_framegsm_sample (void)

Variables

static uint8_t ex_gsm []


Detailed Description

8-bit raw data

Copyright (C) 2008, Digium, Inc.

Distributed under the terms of the GNU General Public License

Definition in file ex_gsm.h.


Function Documentation

static struct ast_frame* gsm_sample ( void   )  [static]

Definition at line 17 of file ex_gsm.h.

References AST_FORMAT_GSM, AST_FRAME_VOICE, ast_frame::data, ex_gsm, f, GSM_SAMPLES, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, and ast_frame::src.

00018 {
00019    static struct ast_frame f = {
00020       .frametype = AST_FRAME_VOICE,
00021       .subclass.codec = AST_FORMAT_GSM,
00022       .datalen = sizeof(ex_gsm),
00023       /* All frames are 20 ms long */
00024       .samples = GSM_SAMPLES,
00025       .mallocd = 0,
00026       .offset = 0,
00027       .src = __PRETTY_FUNCTION__,
00028       .data.ptr = ex_gsm,
00029    };
00030 
00031    return &f;
00032 }


Variable Documentation

uint8_t ex_gsm[] [static]

Definition at line 10 of file ex_gsm.h.

Referenced by gsm_sample().


Generated on Mon Mar 19 11:30:47 2012 for Asterisk - The Open Source Telephony Project by  doxygen 1.4.7