From 8736f6160aeafe7a177cb6143fea80157e174e52 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sun, 6 Oct 2024 19:47:19 +0200 Subject: Implement fixed-point symbols, FFT and file output --- src/DabMod.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/DabMod.cpp') diff --git a/src/DabMod.cpp b/src/DabMod.cpp index 4e338f9..5f8412b 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -249,7 +249,15 @@ static shared_ptr prepare_output(mod_settings_t& s) { shared_ptr output; - if (s.useFileOutput) { + if (s.fixedPoint) { + if (s.useFileOutput) { + output = make_shared(s.outputName, s.fileOutputShowMetadata); + } + else { + throw runtime_error("Fixed point only works with file output"); + } + } + else if (s.useFileOutput) { if (s.fileOutputFormat == "complexf") { output = make_shared(s.outputName, s.fileOutputShowMetadata); } @@ -413,7 +421,7 @@ int launch_modulator(int argc, char* argv[]) ModulatorData m; rcs.enrol(&m); - { + if (not mod_settings.fixedPoint) { // This is mostly useful on ARM systems where FFTW planning takes some time. If we do it here // it will be done before the modulator starts up etiLog.level(debug) << "Running FFTW planning..."; -- cgit v1.2.3