aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-15 22:59:05 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-18 16:28:35 +0800
commit22e50a5e325426d739ce11a63d1772b85285ecc8 (patch)
tree163fc5ea907b56155fd01e27c3910f107d3f7a1d
parentf7278051ee030397abb43a4e652b870865789d17 (diff)
downloadgsoc2013-empathy-22e50a5e325426d739ce11a63d1772b85285ecc8.tar.gz
gsoc2013-empathy-22e50a5e325426d739ce11a63d1772b85285ecc8.tar.zst
gsoc2013-empathy-22e50a5e325426d739ce11a63d1772b85285ecc8.zip
add empathy_audio_src_set_mute()
https://bugzilla.gnome.org/show_bug.cgi?id=678167
-rw-r--r--src/empathy-audio-src.c9
-rw-r--r--src/empathy-audio-src.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c
index 9a6ddee24..9369c7783 100644
--- a/src/empathy-audio-src.c
+++ b/src/empathy-audio-src.c
@@ -767,3 +767,12 @@ empathy_audio_src_change_microphone_finish (EmpathyGstAudioSrc *src,
empathy_implement_finish_void (src,
empathy_audio_src_change_microphone_async);
}
+
+void
+empathy_audio_src_set_mute (EmpathyGstAudioSrc *self,
+ gboolean mute)
+{
+ empathy_audio_set_hw_mute (self, mute);
+
+ g_object_notify (G_OBJECT (self), "mute");
+}
diff --git a/src/empathy-audio-src.h b/src/empathy-audio-src.h
index ff568ce30..ef87c44c4 100644
--- a/src/empathy-audio-src.h
+++ b/src/empathy-audio-src.h
@@ -77,6 +77,9 @@ void empathy_audio_src_change_microphone_async (EmpathyGstAudioSrc *src,
gboolean empathy_audio_src_change_microphone_finish (EmpathyGstAudioSrc *src,
GAsyncResult *result, GError **error);
+void empathy_audio_src_set_mute (EmpathyGstAudioSrc *self,
+ gboolean mute);
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_GST_AUDIO_SRC_H__*/