Skip to content

Pipewire does not support "@DEFAULT_MONITOR@" #127

@Logical-sh

Description

@Logical-sh

Describe the Bug

If you are running pipewire (rapidly becoming the default for distros and gaming!) the stream will not record the audio.
With the default config, this is caused by sunshine requesting pulse use "@DEFAULT_MONITOR@". This seems to be unsupported in pipewire, causing it to listen to a the first available mic instead. (At least this is what happens on my machine as I could hear myself talk through my vive mic on the far wall!)

Expected Behavior

Sunshine uses the monitor of the active sink, causing audio to be properly forwarded.

Additional Context

I think the correct behavior would be to read pulse's sinks and select the default one, and ideally maybe follow the default if changed by the user? Doing this would make switching between stereo and 5.1 and 7.1 and audio duplication on the desktop on the fly all work well.

Sunshine Host Operating System and Version

Manjaro Linux (Kernel 5.17)

Architecture

x64

Sunshine Version

nightly

GPU Type

AMD

GPU Model

6900x

GPU Driver/Mesa Version

mesa-git

Capture Method (Linux Only)

KVM

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions