wip: zoom lock

This commit is contained in:
🪞👃🪞 2025-01-02 17:20:37 +01:00
parent 94491a323a
commit 44c28183de
11 changed files with 107 additions and 89 deletions

View file

@ -33,8 +33,10 @@ impl<'a> TransportView<'a> {
render!(Tui: (self: TransportView<'a>) => Outer(
Style::default().fg(TuiTheme::g(255)).bg(TuiTheme::g(0))
).enclose(row!(
BeatStats::new(self.compact, self.clock), " ",
PlayPause { compact: self.compact, playing: self.clock.is_rolling() }, " ",
BeatStats::new(self.compact, self.clock),
" ",
PlayPause { compact: self.compact, playing: self.clock.is_rolling() },
" ",
OutputStats::new(self.compact, self.clock),
)));
@ -87,7 +89,7 @@ impl OutputStats {
format!("{:.0}Hz", rate)
},
buffer_size: format!("{chunk}"),
latency: format!("{:.3}ms", chunk as f64 / rate * 1000.),
latency: format!("{:.1}ms", chunk as f64 / rate * 1000.),
}
}
}