fix connecting track devices

This commit is contained in:
🪞👃🪞 2024-07-08 18:28:40 +03:00
parent eeb2faf064
commit 14b504374f
4 changed files with 52 additions and 27 deletions

View file

@ -66,13 +66,15 @@ pub fn main () -> Usually<()> {
.collect::<Usually<()>>())
.collect::<Usually<()>>()?;
let audio_outs: Vec<_> = audio_into
state.audio_outs = audio_into
.iter()
.map(|name|client
.ports(Some(name), None, PortFlags::empty())
.get(0)
.map(|name|client.port_by_name(name)))
.flatten()
.filter_map(|x|x)
.map(Arc::new)
.collect();
state.jack = Some(jack);