aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ConfigParser.h2
-rw-r--r--src/DabModulator.cpp7
2 files changed, 2 insertions, 7 deletions
diff --git a/src/ConfigParser.h b/src/ConfigParser.h
index dc5ac4f..51afbc2 100644
--- a/src/ConfigParser.h
+++ b/src/ConfigParser.h
@@ -52,7 +52,7 @@ struct mod_settings_t {
size_t outputRate = 2048000;
size_t clockRate = 0;
- unsigned dabMode = 0;
+ unsigned dabMode = 1;
float digitalgain = 1.0f;
float normalise = 1.0f;
GainMode gainMode = GainMode::GAIN_VAR;
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 4655b82..64c78af 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -121,12 +121,7 @@ int DabModulator::process(Buffer* dataOut)
PDEBUG("DabModulator::process(dataOut: %p)\n", dataOut);
if (not myFlowgraph) {
- unsigned mode = myEtiSource.getMode();
- if (m_settings.dabMode != 0) {
- mode = m_settings.dabMode;
- } else if (mode == 0) {
- mode = 4;
- }
+ const unsigned mode = m_settings.dabMode;
setMode(mode);
myFlowgraph = make_shared<Flowgraph>();