Add PipeWire audio fallback for modern Linux distributions#39
Merged
infinityabundance merged 4 commits intomainfrom Feb 13, 2026
Merged
Add PipeWire audio fallback for modern Linux distributions#39infinityabundance merged 4 commits intomainfrom
infinityabundance merged 4 commits intomainfrom
Conversation
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…e ambiguous buffers Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add PipeWire audio as fallback for capture and playback
Add PipeWire audio fallback for modern Linux distributions
Feb 13, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds PipeWire audio backend between PulseAudio and Dummy fallbacks. Modern distributions (Fedora 40+, Ubuntu 24.04+, Arch) use PipeWire by default and may lack working ALSA/PulseAudio backends.
Details
What changed?
Fallback chain: ALSA → PulseAudio → PipeWire → Dummy
New files:
src/audio_capture_pipewire.c- Capture via pw_stream (48kHz stereo, 5ms frames)src/audio_playback_pipewire.c- Playback via pw_streamModified files:
include/rootstream.h- Added 8 PipeWire function signaturessrc/service.c- Inserted PipeWire into capture/playback backend arraysCMakeLists.txt- Detection via pkg-config (libpipewire-0.3), conditional compilation viaHAVE_PIPEWIREsrc/diagnostics.c- Reports PipeWire status, fixedHAVE_PULSE→HAVE_PULSEAUDIOmacroImplementation details:
pw_init()/pw_deinit()calls prevent resource leaksRationale
PipeWire replaces both ALSA and PulseAudio on modern distributions. Without this fallback, audio streaming fails entirely on PipeWire-only systems despite functioning audio subsystem.
Aligns with RootStream's Linux-native focus by supporting current audio infrastructure while maintaining compatibility with legacy systems through existing fallbacks.
Testing
Notes
libpipewire-0.3-dev(apt),pipewire-devel(dnf), orpipewire(pacman)Original prompt
PHASE 7: PipeWire Audio Fallback for Capture & Playback
Current State
Problem
On modern distributions (Fedora 40+, Ubuntu 24.04+, Arch):
Solution: Add PipeWire as Tier-2 Fallback
Current fallback chain:
After Phase 7:
This ensures audio works on:
Implementation
File 1:
src/audio_capture_pipewire.c- PipeWire Audio Capture