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

Aperta Adatta ai principianti
#989 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
backend, desktop

Direzione di ricerca

Inizia in launcher/src-tauri/src/coop_launch.rs, in prepare_windows(), che secondo il rapporto copia controls.ini in ogni split/N/controls.ini. Leggi come questo aggiornamento gestisce il dispositivo e il volume di [audio], poi confronta il comportamento con la patch di workaround allegata. Il lavoro è concluso quando ogni finestra conserva il proprio dispositivo audio e il proprio volume dopo il riavvio.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
C++
Stelle
224
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di featureJosh/Recompia

Tutte le issue di featureJosh/Recompia

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.