diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-05-07 14:47:45 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2017-05-07 14:47:45 +0200 |
commit | 30b6ffb8afae8aee5bfc2f92d704202635bc7f3b (patch) | |
tree | 21828f314743e4ddf72b7fa58100889e5369ef0c /src/FormatConverter.h | |
parent | bfce4874a0410f8f6521875d7e975f80d05544d4 (diff) | |
download | dabmod-30b6ffb8afae8aee5bfc2f92d704202635bc7f3b.tar.gz dabmod-30b6ffb8afae8aee5bfc2f92d704202635bc7f3b.tar.bz2 dabmod-30b6ffb8afae8aee5bfc2f92d704202635bc7f3b.zip |
Add u8 format to FormatConverter
This is compatible with some tools like welle.io that take
u8 input
Diffstat (limited to 'src/FormatConverter.h')
-rw-r--r-- | src/FormatConverter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/FormatConverter.h b/src/FormatConverter.h index 86ce347..ce848b6 100644 --- a/src/FormatConverter.h +++ b/src/FormatConverter.h @@ -2,7 +2,7 @@ Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011 Her Majesty the Queen in Right of Canada (Communications Research Center Canada) - Copyright (C) 2014 + Copyright (C) 2017 Matthias P. Braendli, matthias.braendli@mpb.li http://opendigitalradio.org @@ -35,6 +35,7 @@ #include "porting.h" #include "ModPlugin.h" #include <complex> +#include <string> #include <stdint.h> typedef std::complex<float> complexf; @@ -42,10 +43,13 @@ typedef std::complex<float> complexf; class FormatConverter : public ModCodec { public: - FormatConverter(void); + FormatConverter(const std::string& format); int process(Buffer* const dataIn, Buffer* dataOut); const char* name(); + + private: + bool m_offset_by_127 = false; }; |