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 {
|
if self.sync {
|
||||||
jack.read().unwrap().client().register_timebase_callback(false, |state|{
|
jack.read().unwrap().client().register_timebase_callback(false, |state|{
|
||||||
let ::jack::contrib::TimebaseInfo { state, new_pos, nframes, mut position } = 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());
|
position.bbt = Some(app.clock().bbt());
|
||||||
println!("\r{:?}", position.bbt);
|
|
||||||
if new_pos {
|
|
||||||
app.clock().playhead.update_from_sample(position.frame() as f64)
|
|
||||||
}
|
|
||||||
position
|
position
|
||||||
})?
|
})?
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1 +1 @@
|
||||||
Subproject commit cfd2a62e959f2a0f5569a129790cfdb316570a7f
|
Subproject commit 76f4bef07e3f9115e8efba0bc053a9bad7e25a19
|
||||||
Loading…
Add table
Add a link
Reference in a new issue