restruct: 40e

This commit is contained in:
i do not exist 2026-06-24 09:28:36 +03:00
parent 027f69cd50
commit 8b6ab2fd08
8 changed files with 331 additions and 290 deletions

View file

@ -118,13 +118,13 @@ impl Action {
// Run the [Tui] and [Jack] threads with the [App] state.
Tui::new(Box::new(std::io::stdout()))?.run(true, &jack.run(move|jack|{
// Between jack init and app's first cycle:
jack.sync_lead(sync_lead, |mut state|{
jack.sync_lead(*sync_lead, |mut state|{
let clock = app.clock();
clock.playhead.update_from_sample(state.position.frame() as f64);
state.position.bbt = Some(clock.bbt());
state.position
})?;
jack.sync_follow(sync_follow)?;
jack.sync_follow(*sync_follow)?;
// FIXME: They don't work properly.
Ok(app)
})?)?;