mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
now syncing correctly, though not in all cases
This commit is contained in:
parent
29db79f806
commit
c3f9aa7549
2 changed files with 2 additions and 6 deletions
|
|
@ -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
|
||||
})?
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue