From 01c4267261937e495545942131b5bd496eba2269 Mon Sep 17 00:00:00 2001
From: Martin Braun <martin.braun@ettus.com>
Date: Fri, 7 Mar 2014 11:21:33 +0100
Subject: vocoder: Fixed packing problem with Codec2, + GRC bindings, added
 example

---
 gr-vocoder/lib/codec2_encode_sp_impl.h | 7 +++++--
 1 file changed, 5 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 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 */
-- 
cgit v1.2.3