alvr-org / alvr-org/ALVR

Audio coming from PC and not ALVR - Fixed

未关闭
#3,329 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Rust
星标
7.9k
派生
708
平均合并
3 天 23 小时
30 天内合并 PR
11

描述

## Description

On KDE Plasma with PipeWire, ALVR headset audio was sometimes playing through my PC speakers instead of the headset.

At first, only my normal `Ryzen Analog Stereo` output appeared selected. When I changed the Ryzen audio device port from **Speakers** to **Headphones**, KDE immediately switched the selected output to **ALVR Audio**. After that, headset audio worked.

Changing the port back and forth between **Speakers** and **Headphones** also caused KDE/WirePlumber to automatically switch between the Ryzen device and `ALVR Audio`.

So this may not be an ALVR streaming/audio encoder bug. It looks like a KDE Plasma / WirePlumber routing behavior where changing the hardware output port causes PipeWire to re-evaluate the default sink, and only then does `ALVR Audio` become selected.

### Screenshots

Image

Image

## Workaround

If ALVR audio is coming from the PC speakers instead of the headset:

1. Open KDE Plasma audio settings.
2. Find the main analog audio device, in my case `Ryzen Analog Stereo`.
3. Change its port from **Speakers** to **Headphones**, or toggle between the two.
4. KDE may then switch the active output to `ALVR Audio`.
5. Confirm that `ALVR Audio` is selected as the playback/output device.

The equivalent terminal check is:

```bash
pactl list short sinks
pactl info | grep 'Default Sink'
```

If `ALVR Audio` exists but is not selected, this can force it as the default sink:

```bash
ALVR_SINK="$(pactl list short sinks | awk -F '\t' 'tolower($2) ~ /alvr audio/ {print $2; exit}')"

if [[ -n "$ALVR_SINK" ]]; then
pactl set-default-sink "$ALVR_SINK"
echo "Set default sink to: $ALVR_SINK"
else
echo "ALVR Audio sink not found."
fi
```

## Environment

**Desktop environment:**
KDE Plasma

**Audio stack:**

* PipeWire 1.6.7
* WirePlumber 0.5.15
* PulseAudio compatibility through `pipewire-pulse`
* ALSA for hardware audio devices

**ALVR Version:**
v20.14.1

**Install Type:**
Installed through ALVR Launcher. Not Flatpak, not AUR.

**SteamVR Version:**
SteamVR previous branch / 2.12.14, if this is still your current version.

**OS:**
Arch Linux, current as of 2026-07-01

## Notes

The confusing part is that `ALVR Audio` may exist, but KDE can still keep the PC speaker device selected. In my case, toggling the analog device port caused KDE/WirePlumber to reselect `ALVR Audio`, which fixed headset audio.

贡献指南

打开贡献指南

调研方向

The report names no ALVR file, test, or entry point and attributes the behavior to KDE Plasma/WirePlumber routing. Start by reviewing the audio sink setup and reproducing the issue with the supplied pactl commands; the report currently documents a workaround rather than a defined code change or completion condition.

由索引模型根据 Issue 内容生成。

评估

技术栈
linux
领域
audio-video-rtc
Issue 类型
缺陷
难度
5/5
预计耗时
一周以上
活跃度
冷清
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。