GNU Radio 3.6.4 C++ API
codec2.h
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
3
FILE........: codec2.h
4
AUTHOR......: David Rowe
5
DATE CREATED: 21/8/2010
6
7
Codec2 fully quantised encoder and decoder functions. If you want use
8
codec2, these are the functions you need to call.
9
10
\*---------------------------------------------------------------------------*/
11
12
/*
13
Copyright (C) 2010 David Rowe
14
15
All rights reserved.
16
17
This program is free software; you can redistribute it and/or modify
18
it under the terms of the GNU Lesser General Public License version 2.1, as
19
published by the Free Software Foundation. This program is
20
distributed in the hope that it will be useful, but WITHOUT ANY
21
WARRANTY; without even the implied warranty of MERCHANTABILITY or
22
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
23
License for more details.
24
25
You should have received a copy of the GNU Lesser General Public License
26
along with this program; if not, see <http://www.gnu.org/licenses/>.
27
*/
28
29
#ifndef __CODEC2__
30
#define __CODEC2__
31
32
#define CODEC2_SAMPLES_PER_FRAME 160
33
#define CODEC2_BITS_PER_FRAME 50
34
35
void
*
codec2_create
();
36
void
codec2_destroy
(
void
*codec2_state);
37
void
codec2_encode
(
void
*codec2_state,
unsigned
char
* bits,
short
speech_in[]);
38
void
codec2_decode
(
void
*codec2_state,
short
speech_out[],
39
const
unsigned
char
* bits);
40
41
#endif
gnuradio
gr-vocoder
lib
codec2
codec2.h
Generated by
1.8.1.1