RustAudio / cpal

Cross-platform audio I/O library in pure Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPal doesn't list mac speakers as an output device

randomairborne opened this issue · 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".