Skip to content

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

Open
@randomairborne

Description

@randomairborne

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions