mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
big flat pt.13: fixed warnings, let's see what it has in store
This commit is contained in:
parent
e21ef1af94
commit
5bc3517dde
13 changed files with 68 additions and 45 deletions
|
|
@ -23,8 +23,9 @@ pub fn main () -> Usually<()> { SamplerCli::parse().run() }
|
|||
}
|
||||
impl SamplerCli {
|
||||
fn run (&self) -> Usually<()> {
|
||||
let name = self.name.as_deref().unwrap_or("tek_sampler");
|
||||
Tui::run(JackConnection::new(name)?.activate_with(|jack|{
|
||||
let name = self.name.as_deref().unwrap_or("tek_sampler");
|
||||
let engine = Tui::new()?;
|
||||
let state = JackConnection::new(name)?.activate_with(|jack|{
|
||||
Ok(tek::SamplerTui {
|
||||
cursor: (0, 0),
|
||||
editing: None,
|
||||
|
|
@ -41,7 +42,7 @@ impl SamplerCli {
|
|||
&[&self.l_to.as_slice(), &self.r_to.as_slice()],
|
||||
)?,
|
||||
})
|
||||
})?)?;
|
||||
Ok(())
|
||||
})?;
|
||||
engine.run(&state)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue