Web UI: offer a detected audio device list for Custom device capture (Linux, Windows, macOS)

未关闭
#6,113 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
描述清楚
活跃度
活跃
技术栈
cpp

调研方向

Read the Custom device audio capture UI work in #5935 and trace how its free-text Audio Sink value is populated and saved. Identify the platform-specific device detection entry points for PulseAudio/PipeWire, WASAPI, and macOS audio inputs. Done means the editable picker lists detected devices, accepts arbitrary typed values, and shows a soft hint for values that are not currently detected.

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

描述

  • I have searched the existing issues
  • I have read the documentation
Describe the issue

In the web UI, the Custom device audio capture mode only offers a free-text Audio Sink field. Users have to know the exact sink/device name in advance (for example by running pacmd list-sinks / pactl list short sinks on Linux) and type it without any typo. That is the hardest step of the feature for new users.

This is an enhancement request, not a bug: the free-text field works, but it is undiscoverable.

Expected behavior

For Custom device, offer an editable device list (combobox) that:

  • lists the audio devices Sunshine can currently detect, per platform:
    • Linux/FreeBSD: PulseAudio/PipeWire sink names,
    • Windows: WASAPI endpoints (friendly name shown, the identifier Sunshine expects stored),
    • macOS: audio input devices, such as BlackHole;
  • still allows typing any device name manually, because valid targets may not exist yet at configuration time (for example the Sunshine null sink created at stream start, BlackHole before it is installed, or a Device ID copied from tools\audio-info.exe);
  • shows a soft hint (not an error) when the typed name is not currently detected, e.g. "not detected right now, will be used exactly as typed".
Additional context

Related to the keep-default / Custom device capture UI work in #5935, but intentionally deferred to a separate PR so that PR stays focused. This issue is only for the device picker on top of the existing free-text configuration value; no config format change is requested.

This issue was generated by Muse Code powered by muse-wonder-1.0, high thinking level

主要语言
C++
星标
43k
派生
2.4k
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

LizardByte/Sunshine 的其他 Issue

查看 LizardByte/Sunshine 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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