mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: zoom lock
This commit is contained in:
parent
94491a323a
commit
44c28183de
11 changed files with 107 additions and 89 deletions
|
|
@ -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.),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue