UI updates

This commit is contained in:
Ayzen
2026-04-01 20:21:16 +03:00
parent 4abc95c372
commit 669205d8f8
43 changed files with 2055 additions and 973 deletions
@@ -16,8 +16,6 @@ enum class HistoryCommand {
struct ProcessingLiveConfig {
std::string processor_mode = "pass_through";
float gain_db = 0.0F;
float phase_deg = 0.0F;
std::string pass_through_channel = "s21";
bool pass_through_fixed_y_enabled = false;
float pass_through_y_min_db = -100.0F;
@@ -96,18 +96,6 @@ using Json = nlohmann::json;
}
config.processor_mode = found->get<std::string>();
}
if (const auto found = root.find("gain_db"); found != root.end()) {
if (!found->is_number()) {
throw std::runtime_error("processing.gain_db must be number");
}
config.gain_db = static_cast<float>(found->get<double>());
}
if (const auto found = root.find("phase_deg"); found != root.end()) {
if (!found->is_number()) {
throw std::runtime_error("processing.phase_deg must be number");
}
config.phase_deg = static_cast<float>(found->get<double>());
}
if (const auto found = root.find("pass_through_channel"); found != root.end()) {
if (!found->is_string()) {
throw std::runtime_error("processing.pass_through_channel must be string");