Asterisk - The Open Source Telephony Project  18.5.0
Functions | Variables
ex_codec2.h File Reference

8-bit raw data More...

#include "asterisk/format_cache.h"
#include "asterisk/frame.h"
Include dependency graph for ex_codec2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


static struct ast_framecodec2_sample (void)


static uint8_t ex_codec2 []

Detailed Description

8-bit raw data

Copyright (C) 2016, Alexander Traud

Distributed under the terms of the GNU General Public License

Definition in file ex_codec2.h.

Function Documentation

◆ codec2_sample()

static struct ast_frame* codec2_sample ( void  )

Definition at line 17 of file ex_codec2.h.

References ast_format_codec2, AST_FRAME_VOICE, CODEC2_SAMPLES, ast_frame::data, ex_codec2, ast_frame_subclass::format, ast_frame::frametype, ast_frame::mallocd, ast_frame::offset, ast_frame::samples, ast_frame::src, and ast_frame::subclass.

18 {
19  static struct ast_frame f = {
21  .datalen = sizeof(ex_codec2),
23  .mallocd = 0,
24  .offset = 0,
25  .src = __PRETTY_FUNCTION__,
26  .data.ptr = ex_codec2,
27  };
31  return &f;
32 }
struct ast_frame_subclass subclass
const char * src
struct ast_format * ast_format_codec2
Built-in cached Codec 2 format.
Definition: format_cache.c:231
Definition: codec_codec2.c:48
static uint8_t ex_codec2[]
Definition: ex_codec2.h:13
Data structure associated with a single frame of data.
union ast_frame::@263 data
enum ast_frame_type frametype
struct ast_format * format

Variable Documentation

◆ ex_codec2

uint8_t ex_codec2[]
Initial value:
= {
0xea, 0xca, 0x14, 0x85, 0x91, 0x78,

Definition at line 13 of file ex_codec2.h.

Referenced by codec2_sample().