aboutsummaryrefslogtreecommitdiffstats
path: root/src/DabModulator.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-10-29 22:55:41 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-10-29 22:55:41 +0100
commit933021ed44e6c1bd2cf1dee91fc033c145c061af (patch)
tree394a40921470502054b678924d060fc5b882fc91 /src/DabModulator.cpp
parent004ff5c13515f61728245ccd3d1f281be987b041 (diff)
downloaddabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.tar.gz
dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.tar.bz2
dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.zip
Change to 16-bit fixed point
Diffstat (limited to 'src/DabModulator.cpp')
-rw-r--r--src/DabModulator.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/DabModulator.cpp b/src/DabModulator.cpp
index 757b01f..5f01725 100644
--- a/src/DabModulator.cpp
+++ b/src/DabModulator.cpp
@@ -178,11 +178,16 @@ int DabModulator::process(Buffer* dataOut)
shared_ptr<TII> tii;
shared_ptr<PhaseReference> tiiRef;
try {
- tii = make_shared<TII>(
- m_settings.dabMode,
- m_settings.tiiConfig);
- rcs.enrol(tii.get());
- tiiRef = make_shared<PhaseReference>(mode, m_settings.fixedPoint);
+ if (m_settings.fixedPoint) {
+ etiLog.level(warn) << "TII does not yet support fixed point";
+ }
+ else {
+ tii = make_shared<TII>(
+ m_settings.dabMode,
+ m_settings.tiiConfig);
+ rcs.enrol(tii.get());
+ tiiRef = make_shared<PhaseReference>(mode, m_settings.fixedPoint);
+ }
}
catch (const TIIError& e) {
etiLog.level(error) << "Could not initialise TII: " << e.what();