Removing lookahead concept

This commit is contained in:
2026-02-04 20:01:17 +01:00
parent 82b0668bcf
commit 767575b25d
11 changed files with 5 additions and 76 deletions

View File

@@ -83,7 +83,6 @@ pub struct AudioConfig {
pub refresh_rate: RefreshRate,
pub show_scope: bool,
pub show_spectrum: bool,
pub lookahead_ms: u32,
pub layout: MainLayout,
}
@@ -102,7 +101,6 @@ impl Default for AudioConfig {
refresh_rate: RefreshRate::default(),
show_scope: true,
show_spectrum: true,
lookahead_ms: 15,
layout: MainLayout::default(),
}
}
@@ -173,7 +171,6 @@ pub enum SettingKind {
BufferSize,
Polyphony,
Nudge,
Lookahead,
}
impl CyclicEnum for SettingKind {
@@ -182,7 +179,6 @@ impl CyclicEnum for SettingKind {
Self::BufferSize,
Self::Polyphony,
Self::Nudge,
Self::Lookahead,
];
}
@@ -311,11 +307,6 @@ impl AudioSettings {
self.config.max_voices = new_val;
}
pub fn adjust_lookahead(&mut self, delta: i32) {
let new_val = (self.config.lookahead_ms as i32 + delta).clamp(0, 50) as u32;
self.config.lookahead_ms = new_val;
}
pub fn toggle_refresh_rate(&mut self) {
self.config.refresh_rate = self.config.refresh_rate.toggle();
}