feat: Add Mic Sensitivity Noise Gate slider and core audio gating

This commit is contained in:
2026-05-27 16:11:37 -04:00
parent dac53fc2ad
commit 529367ee0c
6 changed files with 187 additions and 1 deletions
+12 -1
View File
@@ -2,10 +2,21 @@ use serde::{Deserialize, Serialize};
use std::fs;
use std::path::PathBuf;
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AppConfig {
pub input_device: String,
pub output_device: String,
pub noise_gate_threshold: f32,
}
impl Default for AppConfig {
fn default() -> Self {
Self {
input_device: "".to_string(),
output_device: "".to_string(),
noise_gate_threshold: 0.01,
}
}
}
impl AppConfig {