From 9c32a688929ac41d1a21580c754e4068f78f552c Mon Sep 17 00:00:00 2001 From: AlexandreRouma Date: Thu, 11 Dec 2025 22:27:37 -0500 Subject: [PATCH] enabled the proof-of-concept ATV demodulator in nightly builds --- CMakeLists.txt | 2 +- decoder_modules/atv_decoder/src/main.cpp | 8 -------- make_macos_bundle.sh | 1 + make_windows_package.ps1 | 2 ++ 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1929109..384fb59e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ option(OPT_BUILD_NEW_PORTAUDIO_SINK "Build the new PortAudio Sink Module (Depend option(OPT_BUILD_PORTAUDIO_SINK "Build PortAudio Sink Module (Dependencies: portaudio)" OFF) # Decoders -option(OPT_BUILD_ATV_DECODER "Build ATV decoder (no dependencies required)" OFF) +option(OPT_BUILD_ATV_DECODER "Build ATV decoder (no dependencies required)" ON) option(OPT_BUILD_DAB_DECODER "Build the DAB/DAB+ decoder (no dependencies required)" OFF) option(OPT_BUILD_FALCON9_DECODER "Build the falcon9 live decoder (Dependencies: ffplay)" OFF) option(OPT_BUILD_KG_SSTV_DECODER "Build the KG SSTV (KG-STV) decoder module (no dependencies required)" OFF) diff --git a/decoder_modules/atv_decoder/src/main.cpp b/decoder_modules/atv_decoder/src/main.cpp index 56251eb2..1bab4412 100644 --- a/decoder_modules/atv_decoder/src/main.cpp +++ b/decoder_modules/atv_decoder/src/main.cpp @@ -51,8 +51,6 @@ class ATVDecoderModule : public ModuleManager::Instance { r2c.init(NULL); - file = std::ofstream("chromasub_diff.bin", std::ios::binary | std::ios::out); - agc.start(); demod.start(); sync.start(); @@ -84,8 +82,6 @@ class ATVDecoderModule : public ModuleManager::Instance { bool isEnabled() { return enabled; } - std::ofstream file; - private: static void menuHandler(void *ctx) { ATVDecoderModule *_this = (ATVDecoderModule *)ctx; @@ -122,10 +118,6 @@ class ATVDecoderModule : public ModuleManager::Instance { style::endDisabled(); } - if (ImGui::Button("Close Debug")) { - _this->file.close(); - } - ImGui::Text("Gain: %f", _this->gain); ImGui::Text("Offset: %f", _this->offset); ImGui::Text("Subcarrier: %f", _this->subcarrierFreq); diff --git a/make_macos_bundle.sh b/make_macos_bundle.sh index ffc86616..b0934b7d 100644 --- a/make_macos_bundle.sh +++ b/make_macos_bundle.sh @@ -58,6 +58,7 @@ bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/sink_modules/n bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/sink_modules/new_portaudio_sink/new_portaudio_sink.dylib # Decoder modules +bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/decoder_modules/atv_decoder/atv_decoder.dylib bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/decoder_modules/m17_decoder/m17_decoder.dylib bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/decoder_modules/meteor_demodulator/meteor_demodulator.dylib bundle_install_binary $BUNDLE $BUNDLE/Contents/Plugins $BUILD_DIR/decoder_modules/radio/radio.dylib diff --git a/make_windows_package.ps1 b/make_windows_package.ps1 index dd6872c6..fb40431d 100644 --- a/make_windows_package.ps1 +++ b/make_windows_package.ps1 @@ -77,6 +77,8 @@ cp $build_dir/sink_modules/network_sink/Release/network_sink.dll sdrpp_windows_x # Copy decoder modules +cp $build_dir/decoder_modules/atv_decoder/Release/atv_decoder.dll sdrpp_windows_x64/modules/ + cp $build_dir/decoder_modules/m17_decoder/Release/m17_decoder.dll sdrpp_windows_x64/modules/ cp "C:/Program Files/codec2/lib/libcodec2.dll" sdrpp_windows_x64/