now syncing correctly, though not in all cases

This commit is contained in:
🪞👃🪞 2024-12-29 15:22:14 +01:00
parent 29db79f806
commit c3f9aa7549
2 changed files with 2 additions and 6 deletions

View file

@ -46,12 +46,8 @@ impl GrooveboxCli {
if self.sync {
jack.read().unwrap().client().register_timebase_callback(false, |state|{
let ::jack::contrib::TimebaseInfo { state, new_pos, nframes, mut position } = state;
println!("\n\r{state:?} {new_pos} {nframes} {position:?}");
app.clock().playhead.update_from_sample(position.frame() as f64);
position.bbt = Some(app.clock().bbt());
println!("\r{:?}", position.bbt);
if new_pos {
app.clock().playhead.update_from_sample(position.frame() as f64)
}
position
})?
}

@ -1 +1 @@
Subproject commit cfd2a62e959f2a0f5569a129790cfdb316570a7f
Subproject commit 76f4bef07e3f9115e8efba0bc053a9bad7e25a19