Skip to content

pulseaudio: add target option to control source (microphone) volume#4908

Open
7FM wants to merge 1 commit intoAlexays:masterfrom
7FM:master
Open

pulseaudio: add target option to control source (microphone) volume#4908
7FM wants to merge 1 commit intoAlexays:masterfrom
7FM:master

Conversation

@7FM
Copy link
Copy Markdown

@7FM 7FM commented Mar 5, 2026

The pulseaudio/slider module had partial support for a "target" config option but changeVolume() in the audio backend was hardcoded to only modify sink volume. This adds full source volume control:

  • Add AudioTarget enum (Sink/Source) to audio_backend
  • Extend changeVolume() overloads with AudioTarget parameter
  • Store and use pa_cvolume for source (with mono channel default)
  • Add sourceVolumeModifyCb for source volume change confirmation
  • Add "target" config option to the pulseaudio module for scroll control
  • Document "target" in both pulseaudio and pulseaudio-slider man pages

Usage:
"pulseaudio/slider#in": { "target": "source" } "pulseaudio#in": { "target": "source" }

The pulseaudio/slider module had partial support for a "target" config
option but changeVolume() in the audio backend was hardcoded to only
modify sink volume. This adds full source volume control:

- Add AudioTarget enum (Sink/Source) to audio_backend
- Extend changeVolume() overloads with AudioTarget parameter
- Store and use pa_cvolume for source (with mono channel default)
- Add sourceVolumeModifyCb for source volume change confirmation
- Add "target" config option to the pulseaudio module for scroll control
- Document "target" in both pulseaudio and pulseaudio-slider man pages

Usage:
  "pulseaudio/slider#in": { "target": "source" }
  "pulseaudio#in": { "target": "source" }
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