diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 12:15:12 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2015-09-18 12:15:12 +0200 |
commit | c83676c70c5a11a3ea9893a903609fa030bd7dfa (patch) | |
tree | c7f694c48f70a3ee08af3c5f9359583ebfdff2ba /src/TII.h | |
parent | acb216d31c321da7b4e45e5ad2ff04300c98234d (diff) | |
download | dabmod-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.h | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -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; |