You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm somehow getting some weird artifacts if I try to iterate through the available devices:
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
Reproduction steps
Cargo.toml
# [packages] omitted
[dependencies]
cpal = "0.15"
main.rs
use cpal::traits::{DeviceTrait,HostTrait};fnmain(){for device in cpal::default_host().output_devices().unwrap(){ifletOk(name) = device.name(){println!("From my code: {}", name);}}}
Output after cargo run:
From my code: pipewire
From my code: default
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
ALSA lib pcm_route.c:878:(find_matching_chmap) Found no matching channel map
From my code: iec958:CARD=PCH,DEV=0
From my code: hdmi:CARD=HDMI,DEV=0
From my code: hdmi:CARD=HDMI,DEV=1
From my code: hdmi:CARD=HDMI,DEV=2
From my code: hdmi:CARD=HDMI,DEV=3
From my code: hdmi:CARD=HDMI,DEV=4
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1000:(snd_pcm_dmix_open) unable to open slave
but I expected
From my code: pipewire
From my code: default
From my code: iec958:CARD=PCH,DEV=0
From my code: hdmi:CARD=HDMI,DEV=0
From my code: hdmi:CARD=HDMI,DEV=1
From my code: hdmi:CARD=HDMI,DEV=2
From my code: hdmi:CARD=HDMI,DEV=3
From my code: hdmi:CARD=HDMI,DEV=4
The text was updated successfully, but these errors were encountered:
Hello! I'm somehow getting some weird artifacts if I try to iterate through the available devices:
Reproduction steps
Cargo.toml
main.rs
Output after
cargo run
:but I expected
The text was updated successfully, but these errors were encountered: