diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-03-07 11:21:33 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-03-07 18:10:21 +0100 |
commit | 01c4267261937e495545942131b5bd496eba2269 (patch) | |
tree | 78384e06068ae260358f20622526a66ceb4df482 /gr-vocoder/lib/codec2_encode_sp_impl.h | |
parent | ca69ec5d64b67dfc714917bd94162a5d1f131d69 (diff) |
vocoder: Fixed packing problem with Codec2, + GRC bindings, added example
Diffstat (limited to 'gr-vocoder/lib/codec2_encode_sp_impl.h')
-rw-r--r-- | gr-vocoder/lib/codec2_encode_sp_impl.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gr-vocoder/lib/codec2_encode_sp_impl.h b/gr-vocoder/lib/codec2_encode_sp_impl.h index 354bcc4718..7402d09f90 100644 --- a/gr-vocoder/lib/codec2_encode_sp_impl.h +++ b/gr-vocoder/lib/codec2_encode_sp_impl.h @@ -1,6 +1,6 @@ /* -*- c++ -*- */ /* - * Copyright 2005,2013 Free Software Foundation, Inc. + * Copyright 2005,2013,2014 Free Software Foundation, Inc. * * This file is part of GNU Radio * @@ -32,6 +32,9 @@ namespace gr { { private: void *d_codec2; + 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(); @@ -43,6 +46,6 @@ namespace gr { }; } /* namespace vocoder */ -} /* namespace gr */ +} /* namespace gr */ #endif /* INCLUDED_VOCODER_CODEC2_ENCODE_SP_IMPL_H */ |