Skip to content

Add "Balance" option for per-channel (e.g. left, right) volume sliders

Kai Uwe Broulik requested to merge work/channel-volumes into master

When checking the "Balance" button, a volume slider for each channel (e.g. left, right, center, subwoofer, etc) is shown.

When opening settings with different volumes in some of the channels, "Balance" is checked automatically.

Furthermore, when unchecking "Balance" again, all channels are set back to a uniform volume. Normally, plasma-pa adjusts volume by keeping the difference between channels in tact, so means of explicitly assigning all channels in one go is added.

Also, QQC2 Slider has an explicit onMoved signal which is only fired when the user explicitly moves the slider. This should remove the need for the convoluted "ignore changes" property dance that was present before.

Technically, we could also do per-channel volume for streams, which isn't done in this patch, as I am not sure how useful being able to play music on the left speaker and watching a video on the right is.

Screenshot_20200524_213305 Screenshot_20200524_213318Screenshot_20200524_213457 Latest iteration: Screenshot_20200527_173138

Edited by Kai Uwe Broulik

Merge request reports