summaryrefslogtreecommitdiffstats
path: root/src/TII.h
diff options
context:
space:
mode:
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;