summaryrefslogtreecommitdiffstats
path: root/src/FormatConverter.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-07 14:47:45 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-05-07 14:47:45 +0200
commit30b6ffb8afae8aee5bfc2f92d704202635bc7f3b (patch)
tree21828f314743e4ddf72b7fa58100889e5369ef0c /src/FormatConverter.h
parentbfce4874a0410f8f6521875d7e975f80d05544d4 (diff)
downloaddabmod-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.h8
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;
};