summaryrefslogtreecommitdiffstats
path: root/src/DabModulator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-24 10:39:22 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-24 10:39:22 +0100
commitebe96d69b44d73875f922a7fc59da02695969b00 (patch)
treee20362ae9ee188ba4850276042c743892e1d8102 /src/DabModulator.cpp
parentc6ddb4451138005bbf678ee75d6de690a165faa2 (diff)
downloaddabmod-ebe96d69b44d73875f922a7fc59da02695969b00.tar.gz
dabmod-ebe96d69b44d73875f922a7fc59da02695969b00.tar.bz2
dabmod-ebe96d69b44d73875f922a7fc59da02695969b00.zip
Change phase of TII carriers
This adapts the patch contributed by Piratfm to the next branch
Diffstat (limited to 'src/DabModulator.cpp')
-rw-r--r--src/DabModulator.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 827b73f..678d175 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -187,9 +187,11 @@ int DabModulator::process(Buffer* dataOut)
(float)mySpacing * (float)myOutputRate / 2048000.0f, cic_ratio);
shared_ptr<TII> tii;
+ shared_ptr<PhaseReference> tiiRef;
try {
- tii = make_shared<TII>(myDabMode, myTiiConfig);
+ tii = make_shared<TII>(myDabMode, myTiiConfig, myEtiSource.getFp());
rcs.enrol(tii.get());
+ tiiRef = make_shared<PhaseReference>(mode);
}
catch (TIIError& e) {
etiLog.level(error) << "Could not initialise TII: " << e.what();
@@ -331,6 +333,7 @@ int DabModulator::process(Buffer* dataOut)
myFlowgraph->connect(cifNull, cifSig);
myFlowgraph->connect(cifDiff, cifSig);
if (tii) {
+ myFlowgraph->connect(tiiRef, tii);
myFlowgraph->connect(tii, cifSig);
}