diff options
author | Xavi Garcia Mena <xavi.garcia.mena@canonical.com> | 2015-11-10 14:56:02 +0100 |
---|---|---|
committer | Xavi Garcia Mena <xavi.garcia.mena@canonical.com> | 2015-11-10 14:56:02 +0100 |
commit | 8d981b26459b98189ab3200a23d75ecd0294fb2b (patch) | |
tree | 0ebd8521a68823c2168a724d883c768d36db1f36 /src/volume-control.vala | |
parent | 6ee23e401d3847e609f1ef50e1736f69e6253608 (diff) | |
download | ayatana-indicator-sound-8d981b26459b98189ab3200a23d75ecd0294fb2b.tar.gz ayatana-indicator-sound-8d981b26459b98189ab3200a23d75ecd0294fb2b.tar.bz2 ayatana-indicator-sound-8d981b26459b98189ab3200a23d75ecd0294fb2b.zip |
Restore code to allow amplified volume
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index 6efac35..2f12b7f 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -40,9 +40,10 @@ public abstract class VolumeControl : Object public virtual bool mute { get { return false; } } public virtual bool is_playing { get { return false; } } private Volume _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() { } |