mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
invoke timebase callback, persists state but doesn't seem to do anything
This commit is contained in:
parent
ae69e87dc9
commit
003329aa1b
10 changed files with 350 additions and 329 deletions
|
|
@ -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 };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue