Split screen: window 2's F1 audio output is overwritten by window 1's at every start

オープン 初心者向け
#989 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
rust
領域
backend, desktop

調査の方向性

launcher/src-tauri/src/coop_launch.rs の prepare_windows() から始めてください。報告によると、ここで controls.ini が各 split/N/controls.ini にコピーされます。この更新処理で [audio] のデバイスと音量がどのように扱われるかを読み、添付された回避策のパッチと動作を比較してください。再起動後も各ウィンドウがそれぞれのオーディオデバイスと音量を保持すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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

pkp.log

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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

featureJosh/Recompia のほかの issue

featureJosh/Recompia の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。