summaryrefslogtreecommitdiffstats
path: root/src/TII.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 12:15:12 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2015-09-18 12:15:12 +0200
commitc83676c70c5a11a3ea9893a903609fa030bd7dfa (patch)
treec7f694c48f70a3ee08af3c5f9359583ebfdff2ba /src/TII.h
parentacb216d31c321da7b4e45e5ad2ff04300c98234d (diff)
downloaddabmod-c83676c70c5a11a3ea9893a903609fa030bd7dfa.tar.gz
dabmod-c83676c70c5a11a3ea9893a903609fa030bd7dfa.tar.bz2
dabmod-c83676c70c5a11a3ea9893a903609fa030bd7dfa.zip
Keep TII settings across modulator restart
Diffstat (limited to 'src/TII.h')
-rw-r--r--src/TII.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/TII.h b/src/TII.h
index b241bed..45388ce 100644
--- a/src/TII.h
+++ b/src/TII.h
@@ -51,10 +51,18 @@ struct tii_config_t
int pattern;
};
+class TIIError : public std::runtime_error {
+ public:
+ TIIError(const char* msg) :
+ std::runtime_error(msg) {}
+ TIIError(const std::string& msg) :
+ std::runtime_error(msg) {}
+};
+
class TII : public ModCodec, public RemoteControllable
{
public:
- TII(unsigned int dabmode, const tii_config_t& tii_config);
+ TII(unsigned int dabmode, tii_config_t& tii_config);
virtual ~TII();
int process(Buffer* const dataIn, Buffer* dataOut);
@@ -80,9 +88,7 @@ class TII : public ModCodec, public RemoteControllable
unsigned int m_dabmode;
// Remote-controllable settings
- bool m_enable;
- unsigned int m_comb;
- unsigned int m_pattern;
+ tii_config_t& m_conf;
// Internal flag when to insert TII
bool m_insert;