diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-10-29 22:55:41 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-10-29 22:55:41 +0100 |
commit | 933021ed44e6c1bd2cf1dee91fc033c145c061af (patch) | |
tree | 394a40921470502054b678924d060fc5b882fc91 /src/DabMod.cpp | |
parent | 004ff5c13515f61728245ccd3d1f281be987b041 (diff) | |
download | dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.tar.gz dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.tar.bz2 dabmod-933021ed44e6c1bd2cf1dee91fc033c145c061af.zip |
Change to 16-bit fixed point
Diffstat (limited to 'src/DabMod.cpp')
-rw-r--r-- | src/DabMod.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/DabMod.cpp b/src/DabMod.cpp index b745271..4726df9 100644 --- a/src/DabMod.cpp +++ b/src/DabMod.cpp @@ -313,7 +313,6 @@ static shared_ptr<ModOutput> prepare_output(mod_settings_t& s) else if (s.useDexterOutput) { /* We normalise specifically range [-32768; 32767] */ s.normalise = 32767.0f / normalise_factor; - if (s.fixedPoint) throw runtime_error("dexter fixed_point unsupported"); s.sdr_device_config.sampleRate = s.outputRate; auto dexterdevice = make_shared<Output::Dexter>(s.sdr_device_config); output = make_shared<Output::SDR>(s.sdr_device_config, dexterdevice); @@ -448,7 +447,7 @@ int launch_modulator(int argc, char* argv[]) std::string output_format; if (mod_settings.fixedPoint) { - output_format = "fixedpoint"; + output_format = ""; //fixed point is native sc16, no converter needed } else if (mod_settings.useFileOutput and (mod_settings.fileOutputFormat == "s8" or |