WIP: half broken

This commit is contained in:
2026-01-24 01:59:51 +01:00
parent f75ea4bb97
commit 04f5e19ab2
21 changed files with 1310 additions and 119 deletions

View File

@@ -15,14 +15,20 @@ pub struct AudioSettings {
pub input_device: Option<String>,
pub channels: u16,
pub buffer_size: u32,
#[serde(default = "default_max_voices")]
pub max_voices: usize,
}
fn default_max_voices() -> usize { 32 }
#[derive(Debug, Serialize, Deserialize)]
pub struct DisplaySettings {
pub fps: u32,
pub runtime_highlight: bool,
pub show_scope: bool,
pub show_spectrum: bool,
#[serde(default = "default_true")]
pub show_completion: bool,
}
#[derive(Debug, Serialize, Deserialize)]
@@ -39,10 +45,13 @@ impl Default for AudioSettings {
input_device: None,
channels: 2,
buffer_size: 512,
max_voices: 32,
}
}
}
fn default_true() -> bool { true }
impl Default for DisplaySettings {
fn default() -> Self {
Self {
@@ -50,6 +59,7 @@ impl Default for DisplaySettings {
runtime_highlight: false,
show_scope: true,
show_spectrum: true,
show_completion: true,
}
}
}