From 9d48d89998bb9b4c36615bc7bab622f9b5c066dd Mon Sep 17 00:00:00 2001 From: Clayton Smith <argilo@gmail.com> Date: Sun, 6 Apr 2014 08:56:50 -0400 Subject: Bring codec2 up to the latest version, and add support for all six bit rates. --- gr-vocoder/lib/codec2_encode_sp_impl.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gr-vocoder/lib/codec2_encode_sp_impl.h') diff --git a/gr-vocoder/lib/codec2_encode_sp_impl.h b/gr-vocoder/lib/codec2_encode_sp_impl.h index 7402d09f90..17d6f4e2a1 100644 --- a/gr-vocoder/lib/codec2_encode_sp_impl.h +++ b/gr-vocoder/lib/codec2_encode_sp_impl.h @@ -31,13 +31,14 @@ namespace gr { class codec2_encode_sp_impl : public codec2_encode_sp { private: - void *d_codec2; + CODEC2 *d_codec2; + int d_samples_per_frame, d_bits_per_frame; std::vector<unsigned char> d_frame_buf; //!< Save 1 CODEC2 frame void unpack_frame(const unsigned char *packed, unsigned char *out); //!< Unpack the bytes from codec2 into unpacked bits public: - codec2_encode_sp_impl(); + codec2_encode_sp_impl(int mode, int samples_per_frame, int bits_per_frame); ~codec2_encode_sp_impl(); int work(int noutput_items, -- cgit v1.2.3