cpal icon indicating copy to clipboard operation
cpal copied to clipboard

CPal doesn't list mac speakers as an output device

Open randomairborne opened this issue 2 years ago • 7 comments

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. Screenshot 2023-12-10 at 11 32 44 It lists only Steam Streaming Microphone, Steam Streaming Speakers, and "(name)'s Headphones".

randomairborne avatar Dec 10 '23 18:12 randomairborne

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.

LevonAsatryan avatar Mar 09 '24 21:03 LevonAsatryan