Commit 68a41e0f authored by Aditya Mehra's avatar Aditya Mehra
Browse files

fix volume osd

parent d72f7ca2
......@@ -31,6 +31,7 @@ AbstractIndicator {
id: paIcon
property bool volumeFeedback: true
property int maxVolumeValue: Math.round(100 * PulseAudio.NormalVolume / 100.0)
property int currentMaxVolumePercent: 100
property int volumeStep: Math.round(5 * PulseAudio.NormalVolume / 100.0)
readonly property string dummyOutputName: "auto_null"
icon.name: paSinkModel.preferredSink && !isDummyOutput(paSinkModel.preferredSink) ? Icon.name(paSinkModel.preferredSink.volume, paSinkModel.preferredSink.muted)
......@@ -70,7 +71,7 @@ AbstractIndicator {
var percent = volumePercent(volume, maxVolumeValue);
paSinkModel.preferredSink.muted = percent == 0;
paSinkModel.preferredSink.volume = volume;
osd.show(percent);
osd.show(percent, currentMaxVolumePercent);
playFeedback();
}
......@@ -84,7 +85,7 @@ AbstractIndicator {
var percent = volumePercent(volume, maxVolumeValue);
paSinkModel.preferredSink.muted = percent == 0;
paSinkModel.preferredSink.volume = volume;
osd.show(percent);
osd.show(percent, currentMaxVolumePercent);
playFeedback();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment