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

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

Loading...
Searching...
No Matches
codec2_decode_ps.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2011,2013,2014 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 INCLUDED_VOCODER_CODEC2_DECODE_PS_H
12#define INCLUDED_VOCODER_CODEC2_DECODE_PS_H
13
14#include <gnuradio/sync_interpolator.h>
15#include <gnuradio/vocoder/api.h>
16#include <gnuradio/vocoder/codec2.h>
17
18namespace gr {
19namespace vocoder {
20
21/*!
22 * \brief CODEC2 Vocoder Decoder
23 * \ingroup audio_blk
24 *
25 * Input: A vector of unpacked bits forming a Codec2 frame.
26 *
27 * Output: 16-bit short values of an audio signal with sampling rate 8 kHz.
28 *
29 * See also gr::vocoder::codec2_encode_sp.
30 */
31 class VOCODER_API codec2_decode_ps : virtual public sync_interpolator
32{
33public:
34 // gr::vocoder::codec2_decode_ps::sptr
35 typedef std::shared_ptr<codec2_decode_ps> sptr;
36
37 /*!
38 * \brief Make Codec2 decoder block.
39 *
40 * \param mode Encoded bit rate/mode
41 */
42 static sptr make(int mode = codec2::MODE_2400);
43};
44
45} /* namespace vocoder */
46} /* namespace gr */
47
48#endif /* INCLUDED_VOCODER_CODEC2_DECODE_PS_H */
gr::sync_interpolator::sync_interpolator
sync_interpolator(void)
Definition sync_interpolator.h:31
gr::vocoder::codec2_decode_ps
CODEC2 Vocoder Decoder.
Definition codec2_decode_ps.h:32
gr::vocoder::codec2_decode_ps::make
static sptr make(int mode=codec2::MODE_2400)
Make Codec2 decoder block.
gr::vocoder::codec2_decode_ps::sptr
std::shared_ptr< codec2_decode_ps > sptr
Definition codec2_decode_ps.h:35
gr::vocoder::codec2::MODE_2400
@ MODE_2400
Definition codec2.h:28
codec2.h
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
sync_interpolator.h