Skip to content

audio: a smaller channel count in the PipeWire and JACK settings is applied - #2335

Draft
edumeneses wants to merge 1 commit into
masterfrom
edu/audio-channel-count-shrink
Draft

edumeneses wants to merge 1 commit into
masterfrom
edu/audio-channel-count-shrink

Conversation

@edumeneses

Copy link
Copy Markdown
Contributor

Found while testing the mixer (#2302): in the audio settings (PipeWire or JACK), going from 64 outputs to 2 and confirming kept 64 outputs. When the settings were opened again, the list below the count showed the 64 names, and so did the mixer.

Why: AddRemoveList::setCount emits changed for each name it adds, but not when it removes names.

  • The count spin box therefore updated DefaultOut, but not OutputNames.
  • PipeWireAudioFactory::make_engine and the JACK one open one channel per saved name, then pad up to DefaultOut. So the 64 names won.
  • This dates from the first JACK settings with names (2021).

Change: setCount emits changed once after removing names. The settings then save the shorter list, as they already did for a longer one. A configuration already stuck with extra names is fixed by opening the settings and confirming them, because building the page trims the list to the count.

Test: test_unit_add_remove_list checks that:

  • shrinking the count reports the shorter list;
  • growing it reports the longer one;
  • an unchanged count reports nothing.

Opened by Edu's Claude assistant.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Lc7tYGHRn6TmaxMEfBTswW

…pplied

AddRemoveList::setCount said when it added names and not when it removed
them. Going from 64 outputs to 2 changed DefaultOut but left the 64 saved
output names, and the engine opens as many channels as there are names: it
kept 64, and the settings showed 64 names again once applied.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Lc7tYGHRn6TmaxMEfBTswW
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 48.535% — edu/audio-channel-count-shrink into master. No base build found for master.

This branch has not been deployed

No deployments
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.

2 participants