Skip to content

feat: implement virtual channels initialization for PipeWire - #2

Merged
SFlrn22 merged 1 commit into
mainfrom
feat/init-virtual-channels
Jul 7, 2025
Merged

feat: implement virtual channels initialization for PipeWire#2
SFlrn22 merged 1 commit into
mainfrom
feat/init-virtual-channels

Conversation

@RiceaRaul

Copy link
Copy Markdown
Contributor
  • Add init_virtual_channels function to create game and chat sinks
  • Automatically link virtual sinks to default audio output
  • Create missing sinks only if they don't already exist
  • Improve error handling and logging for sink operations

- Add init_virtual_channels function to create game and chat sinks
- Automatically link virtual sinks to default audio output
- Create missing sinks only if they don't already exist
- Improve error handling and logging for sink operations
@RiceaRaul
RiceaRaul requested review from SFlrn22 and Copilot and removed request for Copilot July 6, 2025 21:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds initialization logic for virtual game/chat audio channels in PipeWire, ensuring missing sinks are auto-created and linked to the system’s default output.

  • Introduce get_default_sink, init_virtual_channels, and helper routines for sink creation and linking in pipewire.rs
  • Update Tauri setup in lib.rs to invoke init_virtual_channels at startup
  • Define a new SinkConfig struct and SINK_CONFIGS array in audio/mod.rs

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src-tauri/src/system/pipewire.rs Added virtual sink initialization and linking
src-tauri/src-tauri/src/lib.rs Hooked init_virtual_channels into Tauri setup
src-tauri/src/audio/mod.rs Defined SinkConfig and SINK_CONFIGS constants

@SFlrn22
SFlrn22 merged commit b585280 into main Jul 7, 2025
1 check passed
@SFlrn22
SFlrn22 deleted the feat/init-virtual-channels branch July 10, 2025 13:15
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.

3 participants