mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
refactor scene grid code, trying to fix initial alignment
This commit is contained in:
parent
df396f2f83
commit
36c1c9bebb
7 changed files with 159 additions and 143 deletions
|
|
@ -73,26 +73,22 @@ audio!(
|
|||
|self, event|{
|
||||
use JackEvent::*;
|
||||
match event {
|
||||
SampleRate(sr) =>
|
||||
{ self.clock.timebase.sr.set(sr as f64); },
|
||||
PortRegistration(id, true) =>
|
||||
{ /*println!("\rport add: {id}")*/ },
|
||||
PortRegistration(id, false) =>
|
||||
{ /*println!("\rport del: {id}")*/ },
|
||||
PortsConnected(a, b, true) =>
|
||||
{ /*println!("\rport conn: {a} {b}")*/ },
|
||||
PortsConnected(a, b, false) =>
|
||||
{ /*println!("\rport disc: {a} {b}")*/ },
|
||||
ClientRegistration(id, true) =>
|
||||
{},
|
||||
ClientRegistration(id, false) =>
|
||||
{},
|
||||
ThreadInit =>
|
||||
{},
|
||||
XRun =>
|
||||
{},
|
||||
GraphReorder =>
|
||||
{},
|
||||
SampleRate(sr) => { self.clock.timebase.sr.set(sr as f64); },
|
||||
PortRegistration(id, true) => {
|
||||
//let port = self.jack().port_by_id(id);
|
||||
//println!("\rport add: {id} {port:?}");
|
||||
println!("\rport add: {id}");
|
||||
},
|
||||
PortRegistration(id, false) => {
|
||||
/*println!("\rport del: {id}")*/
|
||||
},
|
||||
PortsConnected(a, b, true) => { /*println!("\rport conn: {a} {b}")*/ },
|
||||
PortsConnected(a, b, false) => { /*println!("\rport disc: {a} {b}")*/ },
|
||||
ClientRegistration(id, true) => {},
|
||||
ClientRegistration(id, false) => {},
|
||||
ThreadInit => {},
|
||||
XRun => {},
|
||||
GraphReorder => {},
|
||||
_ => { panic!("{event:?}"); }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue