mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 09:36:46 +00:00
git status -u, learn something new every day.
This commit is contained in:
28
libs/libcodec2/asterisk/ex_codec2.h
Normal file
28
libs/libcodec2/asterisk/ex_codec2.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*! \file
|
||||
* \brief 8-bit raw data
|
||||
*
|
||||
* Copyright (C) 2012, 2012 Ed W and David Rowe
|
||||
*
|
||||
* Distributed under the terms of the GNU General Public License
|
||||
*
|
||||
*/
|
||||
|
||||
static uint8_t ex_codec2[] = {
|
||||
0x3e,0x06,0x4a,0xbb,0x9e,0x40,0xc0
|
||||
};
|
||||
|
||||
static struct ast_frame *codec2_sample(void)
|
||||
{
|
||||
static struct ast_frame f = {
|
||||
.frametype = AST_FRAME_VOICE,
|
||||
.subclass.codec = AST_FORMAT_CODEC2,
|
||||
.datalen = sizeof(ex_codec2),
|
||||
.samples = CODEC2_SAMPLES,
|
||||
.mallocd = 0,
|
||||
.offset = 0,
|
||||
.src = __PRETTY_FUNCTION__,
|
||||
.data.ptr = ex_codec2,
|
||||
};
|
||||
|
||||
return &f;
|
||||
}
|
Reference in New Issue
Block a user