mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-15 16:06:41 +01:00
fix connecting track devices
This commit is contained in:
parent
eeb2faf064
commit
14b504374f
4 changed files with 52 additions and 27 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue