[Xfce4-commits] [panel-plugins/xfce4-pulseaudio-plugin] 07/12: Cleanup
noreply at xfce.org
noreply at xfce.org
Tue Feb 17 00:12:46 CET 2015
This is an automated email from the git hooks/post-receive script.
andrzejr pushed a commit to branch master
in repository panel-plugins/xfce4-pulseaudio-plugin.
commit 3ce3d47527d1e6b98d3ba2255032f6f821e99185
Author: Andrzej <ndrwrdck at gmail.com>
Date: Wed Apr 30 22:35:14 2014 +0100
Cleanup
---
panel-plugin/pulseaudio-volume.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/panel-plugin/pulseaudio-volume.c b/panel-plugin/pulseaudio-volume.c
index 279f359..cc7dae4 100644
--- a/panel-plugin/pulseaudio-volume.c
+++ b/panel-plugin/pulseaudio-volume.c
@@ -103,6 +103,7 @@ pulseaudio_volume_init (PulseaudioVolume *volume)
{
volume->connected = FALSE;
volume->volume = 0.0;
+ volume->muted = FALSE;
volume->pa_mainloop = pa_glib_mainloop_new (NULL);
@@ -142,16 +143,16 @@ pulseaudio_volume_sink_info_cb (pa_context *context,
if (volume->muted != muted)
{
+ g_debug ("Updated Mute: %d -> %d", volume->muted, muted);
volume->muted = muted;
g_signal_emit (G_OBJECT (volume), pulseaudio_volume_signals [VOLUME_CHANGED], 0);
- //g_debug ("Muted: %d", muted);
}
- if (volume->volume != vol)
+ if (ABS (volume->volume - vol) > 2e-3)
{
+ g_debug ("Updated Volume: %04.3f -> %04.3f", volume->volume, vol);
volume->volume = vol;
g_signal_emit (G_OBJECT (volume), pulseaudio_volume_signals [VOLUME_CHANGED], 0);
- //g_debug ("Volume: %f", vol);
}
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list