invoke timebase callback, persists state but doesn't seem to do anything

This commit is contained in:
🪞👃🪞 2024-12-29 00:52:20 +01:00
parent ae69e87dc9
commit 003329aa1b
10 changed files with 350 additions and 329 deletions

View file

@ -44,6 +44,7 @@ from_jack!(|jack|GrooveboxTui {
status: true,
}
});
has_clock!(|self: GrooveboxTui|self.player.clock());
audio!(|self: GrooveboxTui, client, scope|{
let t0 = self.perf.get_t0();
if Control::Quit == ClockAudio(&mut self.player).process(client, scope) {
@ -90,7 +91,6 @@ audio!(|self: GrooveboxTui, client, scope|{
self.perf.update(t0, scope);
Control::Continue
});
has_clock!(|self:GrooveboxTui|&self.player.clock);
render!(<Tui>|self:GrooveboxTui|{
let w = self.size.w();
let phrase_w = if w > 60 { 20 } else if w > 40 { 15 } else { 10 };