mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-15 16:06:41 +01:00
wip: fixing port autoconnect
This commit is contained in:
parent
6979fd67ec
commit
32dc708096
5 changed files with 98 additions and 94 deletions
12
src/main.rs
12
src/main.rs
|
|
@ -14,8 +14,12 @@ use crate::{core::*, model::*};
|
|||
|
||||
/// Application entrypoint.
|
||||
pub fn main () -> Usually<()> {
|
||||
let mut app = App::new(include_str!("../demos/project.edn"))?;
|
||||
app.connect_to_midi_ins(&["nanoKEY Studio.*capture.*"])?;
|
||||
app.connect_to_audio_outs(&["Komplete.+:playback_FL", "Komplete.+:playback_FR"])?;
|
||||
run(app.activate()?).map(|_|())
|
||||
let app = App::from_edn(include_str!("../demos/project.edn"))?
|
||||
.with_midi_ins(&["nanoKEY Studio.*capture.*"])?
|
||||
.with_audio_outs(&["Komplete.+:playback_FL", "Komplete.+:playback_FR"])?
|
||||
.activate(Some(|app: &Arc<RwLock<App>>| {
|
||||
Ok(())
|
||||
}))?;
|
||||
run(app)?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue