Split screen: window 2's F1 audio output is overwritten by window 1's at every start
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 72/100
調査の方向性
launcher/src-tauri/src/coop_launch.rs の prepare_windows() から始めてください。報告によると、ここで controls.ini が各 split/N/controls.ini にコピーされます。この更新処理で [audio] のデバイスと音量がどのように扱われるかを読み、添付された回避策のパッチと動作を比較してください。再起動後も各ウィンドウがそれぞれのオーディオデバイスと音量を保持すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What happened
In split screen, each window has its own controls.ini (window 2 uses split/2/controls.ini), and the F1 > Audio page lets each window pick its own output device. But at every start, prepare_windows() in launcher/src-tauri/src/coop_launch.rs copies the game folder's controls.ini over every split/N/controls.ini, so window 2's [audio] device (and volume) is replaced by window 1's. After a restart both windows always play on the same device.
Use case: I play split screen with a remote player through Parsec. I want window 1 on my headset and window 2 on a virtual device that Parsec captures, so each player only hears their own game. Windows' per-app output setting can't split them because both windows are the same pkp.exe.
What you expected
Each window keeps its own F1 Audio choice (output device and volume) across starts.
For reference, here is how I worked around it on my side (patch attached): prepare_windows still refreshes each window from controls.ini, but keeps the window's own [audio] device and volume. It works for me (window 1 on my headset, window 2 on another output, kept after restarts, and Parsec only gets player 2's sound). You know the code much better than me, so feel free to fix it differently, it's just in case it helps.
A nice follow-up could be an "Audio output" choice per player in the launcher's split screen card, next to Controller and Screen. Happy to open a PR if you prefer.
recompia-audio-par-fenetre.patch
Version
0.18.1
Platform
Windows PC
Update channel
Stable
GPU and driver version
NVIDIA GeForce RTX 5070 Ti, driver 621.14
pkp.log
Not a crash: the bug is in the launcher (prepare_windows in coop_launch.rs copies controls.ini over split/N/controls.ini at every start). pkp.log from a split screen session below.
Before you send
- I searched the open and closed issues and this is not already reported.
- My game dump is version 2.0.1a.
- 主要言語
- C++
- スター
- 224
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
featureJosh/Recompia のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
featureJosh/Recompia#968 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 54/100
featureJosh/Recompia#991 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
featureJosh/Recompia#990 · コメント 1 件 ·
-
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
featureJosh/Recompia#988 ·
-
I can not play DLCオープンbug
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
featureJosh/Recompia#984 ·
featureJosh/Recompia の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
ZuluSCSI/ZuluSCSI-firmware#1077 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
CachyOS/packageinstaller#201 ·
メンテナーはふだん 1 日以内に返信
-
bug difficulty:easy prio:low
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
NatronGitHub/openfx-misc#457 ·
メンテナーはふだん 1 日以内に返信
-
[macOS version] MOBI (and EngineEbook) text renders upside-down / vertically mirrored (26.11.24.2)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sumatrapdfreader/sumatrapdf#6626 ·
メンテナーはふだん 1 日以内に返信