summaryrefslogtreecommitdiff
path: root/gr-vocoder/lib/codec2_decode_ps_impl.h
diff options
context:
space:
mode:
authorClayton Smith <argilo@gmail.com>2014-04-06 08:56:50 -0400
committerJohnathan Corgan <johnathan@corganlabs.com>2014-04-16 11:54:43 -0700
commit9d48d89998bb9b4c36615bc7bab622f9b5c066dd (patch)
treeb305542921ea1eaea93da863661f9630eea1d57d /gr-vocoder/lib/codec2_decode_ps_impl.h
parent0c23ef5f16fb7814fd47beba3c96bd4fbe54c952 (diff)
Bring codec2 up to the latest version, and add support for all six bit rates.
Diffstat (limited to 'gr-vocoder/lib/codec2_decode_ps_impl.h')
-rw-r--r--gr-vocoder/lib/codec2_decode_ps_impl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/gr-vocoder/lib/codec2_decode_ps_impl.h b/gr-vocoder/lib/codec2_decode_ps_impl.h
index b9591dce74..db5ba2eef1 100644
--- a/gr-vocoder/lib/codec2_decode_ps_impl.h
+++ b/gr-vocoder/lib/codec2_decode_ps_impl.h
@@ -31,13 +31,14 @@ namespace gr {
class codec2_decode_ps_impl : public codec2_decode_ps
{
private:
- void *d_codec2;
+ CODEC2 *d_codec2;
+ int d_samples_per_frame, d_bits_per_frame, d_bytes_per_frame;
std::vector<unsigned char> d_frame_buf; //!< Store 1 packed frame for decoding
void pack_frame(const unsigned char *in_unpacked, unsigned char *out_packed); //!< Pack the bytes from unpacked bits for codec2
public:
- codec2_decode_ps_impl();
+ codec2_decode_ps_impl(int mode, int samples_per_frame, int bits_per_frame);
~codec2_decode_ps_impl();
int work(int noutput_items,