Skip to content

Commit

Permalink
removed AF NR 1
Browse files Browse the repository at this point in the history
  • Loading branch information
sannysanoff committed Mar 8, 2024
1 parent ecf997c commit 67b4ff7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions misc_modules/noise_reduction_logmmse/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class NRModule : public ModuleManager::Instance {
config.acquire();

bool afnr = false;
if (config.conf.contains("AF_NR_"+instanceName)) afnr = config.conf["AF_NR_"+instanceName];
// if (config.conf.contains("AF_NR_"+instanceName)) afnr = config.conf["AF_NR_"+instanceName];
auto frequency = 10;
if (config.conf.contains("AF_NRF_"+instanceName)) frequency = config.conf["AF_NRF_"+instanceName];

Expand Down Expand Up @@ -228,15 +228,14 @@ class NRModule : public ModuleManager::Instance {
// if (mustShowTooltip("IFNR"))
// ImGui::SetTooltip("Algorithm running on full bandwidth. High CPU usage! Good for SSB/AM/CW only.");

/*
for(auto [k, v] : afnrProcessors) {
if (ImGui::Checkbox(("Audio NR "+k+"##_radio_logmmse_nr_" + k).c_str(), &v->allowed)) {
actuateAFNR();
config.acquire();
config.conf["AF_NR_"+k] = v->allowed;
config.release(true);
}
// if (mustShowTooltip("AFNR"+k))
// ImGui::SetTooltip("Noise reduction over the audio frequency.");
ImGui::SameLine();
ImGui::SetNextItemWidth(menuWidth - ImGui::GetCursorPosX());
if (ImGui::SliderInt(("##_radio_logmmse_wf" + k).c_str(), &v->afnrBandwidth, 1, 48, "%d KHz")) {
Expand All @@ -246,6 +245,7 @@ class NRModule : public ModuleManager::Instance {
config.release(true);
}
}
*/
for(auto [k, v] : afnrProcessors2) {
if (ImGui::Checkbox(("Audio NR2 "+k+"##_radio_omlsa_nr_" + k).c_str(), &v->allowed)) {
actuateAFNR();
Expand Down

0 comments on commit 67b4ff7

Please sign in to comment.