summaryrefslogtreecommitdiff
path: root/gr-vocoder/lib/codec2_encode_sp_impl.h
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2014-04-21 09:41:31 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2014-04-21 09:41:31 -0700
commit33e5aeb722ba4fc1c2ae3162c4940b546037717f (patch)
treec3f1e57feeab5ea07e0bc5d7d56791c881f457b7 /gr-vocoder/lib/codec2_encode_sp_impl.h
parenta3998949d9c65076d91e3165733a5abd381ad882 (diff)
parent5efae492bb690e8e92fe18fb0abe0aff345c3935 (diff)
Merge branch 'merge-codec2-update'
Diffstat (limited to 'gr-vocoder/lib/codec2_encode_sp_impl.h')
-rw-r--r--gr-vocoder/lib/codec2_encode_sp_impl.h5
1 files changed, 3 insertions, 2 deletions
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,