aboutsummaryrefslogtreecommitdiff
path: root/src/pulseaudio-mgr.c
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2011-02-18 16:22:58 +0000
committerConor Curran <conor.curran@canonical.com>2011-02-18 16:22:58 +0000
commit5882cc24cda26ab021224c66abf579b6b603617b (patch)
tree3d72715c49d3fdba026bd765cc846d0e3b91b23a /src/pulseaudio-mgr.c
parentfca4da8d8a9dd24d8abdf2a92cf19a0c6d596e48 (diff)
downloadayatana-indicator-sound-5882cc24cda26ab021224c66abf579b6b603617b.tar.gz
ayatana-indicator-sound-5882cc24cda26ab021224c66abf579b6b603617b.tar.bz2
ayatana-indicator-sound-5882cc24cda26ab021224c66abf579b6b603617b.zip
and unmutes on slider activation
Diffstat (limited to 'src/pulseaudio-mgr.c')
-rw-r--r--src/pulseaudio-mgr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/pulseaudio-mgr.c b/src/pulseaudio-mgr.c
index 8f7a290..e319793 100644
--- a/src/pulseaudio-mgr.c
+++ b/src/pulseaudio-mgr.c
@@ -175,6 +175,15 @@ pm_update_mic_gain (gint source_index, pa_cvolume new_gain)
NULL) );
}
+void
+pm_update_mic_mute (gint source_index, gint mute_update)
+{
+ pa_operation_unref (pa_context_set_source_mute_by_index (pulse_context,
+ source_index,
+ mute_update,
+ NULL,
+ NULL));
+}
/**********************************************************************************************************************/
// Pulse-Audio asychronous call-backs
/**********************************************************************************************************************/
@@ -258,6 +267,7 @@ pm_subscribed_events_callback (pa_context *c,
}
+
static void
pm_context_state_callback (pa_context *c, void *userdata)
{