619
if (value.volume != _volume.volume) {
620
debug("Setting volume to %f for profile %d because %d", value.volume, _active_sink_input, value.reason);
622
var old_high_volume = this.high_volume;
625
/* Make sure we're connected to Pulse and pulse didn't give us the change */
626
if (context.get_state () == Context.State.READY &&
627
_volume.reason != VolumeControl.VolumeReasons.PULSE_CHANGE)
628
if (_pulse_use_stream_restore)
629
set_volume_active_role.begin ();
631
context.get_server_info (server_info_cb_for_set_volume);
633
if (this.high_volume != old_high_volume)
634
this.notify_property("high-volume");
636
if (volume.reason != VolumeControl.VolumeReasons.ACCOUNTS_SERVICE_SET)
637
start_local_volume_timer();
619
var volume_changed = (value.volume != _volume.volume);
620
debug("Setting volume to %f for profile %d because %d", value.volume, _active_sink_input, value.reason);
622
var old_high_volume = this.high_volume;
625
/* Make sure we're connected to Pulse and pulse didn't give us the change */
626
if (context.get_state () == Context.State.READY &&
627
_volume.reason != VolumeControl.VolumeReasons.PULSE_CHANGE &&
629
if (_pulse_use_stream_restore)
630
set_volume_active_role.begin ();
632
context.get_server_info (server_info_cb_for_set_volume);
634
if (this.high_volume != old_high_volume)
635
this.notify_property("high-volume");
637
if (volume.reason != VolumeControl.VolumeReasons.ACCOUNTS_SERVICE_SET
639
start_local_volume_timer();