aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control.vala
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-12-09 18:07:48 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-12-09 18:07:48 +0100
commit93f5b849355276fe04674787f28f63cccddbbd7c (patch)
treef1c4e5134b38c719476ab2bdca08fcf60b859e34 /src/volume-control.vala
parent762a2ea0e5e65ae32fbe0ba40cb6f6b88cc186fa (diff)
parent8d981b26459b98189ab3200a23d75ecd0294fb2b (diff)
downloadayatana-indicator-sound-93f5b849355276fe04674787f28f63cccddbbd7c.tar.gz
ayatana-indicator-sound-93f5b849355276fe04674787f28f63cccddbbd7c.tar.bz2
ayatana-indicator-sound-93f5b849355276fe04674787f28f63cccddbbd7c.zip
Merged lp:~xavi-garcia-mena/indicator-sound/bug-1512798-reenable-amplified-volume
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r--src/volume-control.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index 7117990..3431ac3 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -55,9 +55,10 @@ public abstract class VolumeControl : Object
public virtual VolumeControl.ActiveOutput active_output { get { return VolumeControl.ActiveOutput.SPEAKERS; } }
private Volume _volume;
private double _pre_clamp_volume;
+ private double _max_volume = 1.0;
public virtual Volume volume { get { return _volume; } set { } }
public virtual double mic_volume { get { return 0.0; } set { } }
- public virtual double max_volume { get { return 1.0; } protected set { } }
+ public virtual double max_volume { get { return _max_volume; } set { _max_volume = value;} }
public virtual bool high_volume_approved { get { return false; } protected set { } }
public virtual void approve_high_volume() { }