Skip to content

fix(audio): clear runtime access tracking on TCP listener teardown#14

Merged
hikaps merged 1 commit intodevelopfrom
fix/tcp-audio
Apr 22, 2026
Merged

fix(audio): clear runtime access tracking on TCP listener teardown#14
hikaps merged 1 commit intodevelopfrom
fix/tcp-audio

Conversation

@hikaps
Copy link
Copy Markdown
Owner

@hikaps hikaps commented Apr 22, 2026

Summary

  • Clear m_runtimeAccessSetForUid in cleanupTcpListenerIfLast() when the TCP listener config is removed, so SetupRuntimeAccess() re-runs on the next session start and recreates the PipeWire PulseAudio TCP listener

Problem

Audio routing broke after closing instances and starting a new session. The TCP listener config (50-couchplay.conf) was removed during teardown, but m_runtimeAccessSetForUid still contained the compositor UID. On the next launch, LaunchInstance() saw the UID in the set and skipped SetupRuntimeAccess() entirely — so the TCP listener was never recreated. Instances launched with PULSE_SERVER=tcp:127.0.0.1:4713 but nothing was listening.

Workaround was reinstalling the helper, which restarts the daemon and clears the in-memory set.

Testing

  • Built and linked couchplay and couchplay-helper successfully
  • Single-line fix in helper/CouchPlayHelper.cpp

@hikaps hikaps merged commit c94d4c2 into develop Apr 22, 2026
1 check passed
@hikaps hikaps deleted the fix/tcp-audio branch April 22, 2026 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant