GNU Radio C++ API Reference: codec2.h Source File

| GNU Radio C++ API Reference 3.10.12.0 The Free & Open Software Radio Ecosystem |

Loading...
Searching...
No Matches
codec2.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2014,2016,2019 Free Software Foundation, Inc.
4 *
5 * This file is part of GNU Radio
6 *
7 * SPDX-License-Identifier: GPL-3.0-or-later
8 *
9 */
10
11#ifndef _VOCODER_CODEC2_H_
12#define _VOCODER_CODEC2_H_
13
14#include <gnuradio/vocoder/api.h>
15
16extern "C" {
17#include <codec2/codec2.h>
18}
19
20namespace gr {
21namespace vocoder {
22
23 class VOCODER_API codec2
24{
25public:
26 enum bit_rate {
27 MODE_3200 = CODEC2_MODE_3200,
28 MODE_2400 = CODEC2_MODE_2400,
29 MODE_1600 = CODEC2_MODE_1600,
30 MODE_1400 = CODEC2_MODE_1400,
31 MODE_1300 = CODEC2_MODE_1300,
32 MODE_1200 = CODEC2_MODE_1200,
33#ifdef CODEC2_MODE_700
34 MODE_700 = CODEC2_MODE_700,
35#endif
36#ifdef CODEC2_MODE_700B
37 MODE_700B = CODEC2_MODE_700B,
38#endif
39#ifdef CODEC2_MODE_700C
40 MODE_700C = CODEC2_MODE_700C,
41#endif
42#ifdef CODEC2_MODE_WB
43 MODE_WB = CODEC2_MODE_WB,
44#endif
45#ifdef CODEC2_MODE_450
46 MODE_450 = CODEC2_MODE_450,
47#endif
48#ifdef CODEC2_MODE_450PWB
49 MODE_450PWB = CODEC2_MODE_450PWB,
50#endif
51 };
52
53private:
54};
55
56} /* namespace vocoder */
57} /* namespace gr */
58
59#endif /* _VOCODER_CODEC2_H_ */
gr::vocoder::codec2
Definition codec2.h:24
gr::vocoder::codec2::bit_rate
bit_rate
Definition codec2.h:26
gr::vocoder::codec2::MODE_3200
@ MODE_3200
Definition codec2.h:27
gr::vocoder::codec2::MODE_1300
@ MODE_1300
Definition codec2.h:31
gr::vocoder::codec2::MODE_1600
@ MODE_1600
Definition codec2.h:29
gr::vocoder::codec2::MODE_1200
@ MODE_1200
Definition codec2.h:32
gr::vocoder::codec2::MODE_2400
@ MODE_2400
Definition codec2.h:28
gr::vocoder::codec2::MODE_1400
@ MODE_1400
Definition codec2.h:30
api.h
VOCODER_API
#define VOCODER_API
Definition gr-vocoder/include/gnuradio/vocoder/api.h:18
gr::vocoder
Definition alaw_decode_bs.h:18
gr
GNU Radio logging wrapper.
Definition basic_block.h:29