cpal
cpal copied to clipboard
CPal doesn't list mac speakers as an output device
I have this code on my M2 MacBook Pro, running macOS Sonoma 14.1.2:
let host = rodio::cpal::default_host();
let devices = host.output_devices()?;
for device in devices {
let name = device.name()?;
println!("{name}");
}
However, it does not output "MacBook Pro Speakers", which are listed with the .devices() call as well as in System Settings.
It lists only Steam Streaming Microphone, Steam Streaming Speakers, and "(name)'s Headphones".
I'm having the same issue on a macbook pro with an M1 pro chip. I noticed that if macbook speakers are chosen as an output device in the system, then they show up as normally, but when something else is set then cpal fails to list them as an output device.
Please let me know if there are any updates on this issue.