show buffer size and latency

This commit is contained in:
🪞👃🪞 2024-11-27 01:30:40 +01:00
parent 763063f4ed
commit 51889d4b43
5 changed files with 33 additions and 14 deletions

View file

@ -25,7 +25,7 @@ impl TryFrom<&Arc<RwLock<JackClient>>> for TransportTui {
fn try_from (jack: &Arc<RwLock<JackClient>>) -> Usually<Self> {
Ok(Self {
jack: jack.clone(),
clock: ClockModel::from(&Arc::new(jack.read().unwrap().transport())),
clock: ClockModel::from(jack),
size: Measure::new(),
cursor: (0, 0),
focus: FocusState::Entered(TransportFocus::PlayPause)