aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-12-17 12:07:05 +0100
committerXavi Garcia Mena <xavi.garcia.mena@canonical.com>2015-12-17 12:07:05 +0100
commit7e7f4af3361d7275cb360db0e3dbff3aac569ebe (patch)
treee6bf4bde2bb817b365c59cf457535cbe56eb47f5 /src
parent76c581299cafed21839f64dc9e90d768ffbd2ead (diff)
downloadayatana-indicator-sound-7e7f4af3361d7275cb360db0e3dbff3aac569ebe.tar.gz
ayatana-indicator-sound-7e7f4af3361d7275cb360db0e3dbff3aac569ebe.tar.bz2
ayatana-indicator-sound-7e7f4af3361d7275cb360db0e3dbff3aac569ebe.zip
Maroon in trouble and other games changing the volume in sink and changing role workaround
Diffstat (limited to 'src')
-rw-r--r--src/volume-control-pulse.vala10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala
index 66b6ba4..3791f29 100644
--- a/src/volume-control-pulse.vala
+++ b/src/volume-control-pulse.vala
@@ -344,7 +344,10 @@ public class VolumeControlPulse : VolumeControl
var vol = new VolumeControl.Volume();
vol.volume = volume_to_double (lvolume);
vol.reason = VolumeControl.VolumeReasons.PULSE_CHANGE;
- this.volume = vol;
+ // Ignore changes from PULSE to avoid issues with
+ // some apps that change the volume in the sink
+ // We only take into account volume changes from the user
+ //this.volume = vol;
}
}
}
@@ -388,7 +391,10 @@ public class VolumeControlPulse : VolumeControl
var vol = new VolumeControl.Volume();
vol.volume = volume_to_double (volume);
vol.reason = VolumeControl.VolumeReasons.VOLUME_STREAM_CHANGE;
- this.volume = vol;
+ // Ignore changes from PULSE to avoid issues with
+ // some apps that change the volume in the sink
+ // We only take into account volume changes from the user
+ //this.volume = vol;
} catch (GLib.Error e) {
warning ("unable to get volume for active role %s (%s)", sink_input_objp, e.message);
}