refactor scene grid code, trying to fix initial alignment

This commit is contained in:
🪞👃🪞 2025-01-27 14:34:16 +01:00
parent df396f2f83
commit 36c1c9bebb
7 changed files with 159 additions and 143 deletions

View file

@ -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:?}"); }
}
}