Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPal doesn't list mac speakers as an output device #814

Open
randomairborne opened this issue Dec 10, 2023 · 1 comment
Open

CPal doesn't list mac speakers as an output device #814

randomairborne opened this issue Dec 10, 2023 · 1 comment

Comments

@randomairborne
Copy link

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".

@LevonAsatryan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants