diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-07-26 21:27:33 +0800 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2011-07-28 16:34:47 +0800 |
commit | 7212c6e568aab0c729c9334b0b7a82e7eb33597d (patch) | |
tree | 6eb15978287093700f3abe8b67d9e2a5dfde99f7 /src/empathy-audio-src.h | |
parent | 2b922c7d744be1bd46f67215a8fb5b1eec6377c0 (diff) | |
download | gsoc2013-empathy-7212c6e568aab0c729c9334b0b7a82e7eb33597d.tar gsoc2013-empathy-7212c6e568aab0c729c9334b0b7a82e7eb33597d.tar.gz gsoc2013-empathy-7212c6e568aab0c729c9334b0b7a82e7eb33597d.tar.bz2 gsoc2013-empathy-7212c6e568aab0c729c9334b0b7a82e7eb33597d.tar.lz gsoc2013-empathy-7212c6e568aab0c729c9334b0b7a82e7eb33597d.tar.xz gsoc2013-empathy-7212c6e568aab0c729c9334b0b7a82e7eb33597d.tar.zst gsoc2013-empathy-7212c6e568aab0c729c9334b0b7a82e7eb33597d.zip |
audio-src: add API to query available microphones
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/empathy-audio-src.h')
-rw-r--r-- | src/empathy-audio-src.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/empathy-audio-src.h b/src/empathy-audio-src.h index 4bca31b61..c5887237f 100644 --- a/src/empathy-audio-src.h +++ b/src/empathy-audio-src.h @@ -23,6 +23,7 @@ #include <glib-object.h> #include <gst/gst.h> +#include <gio/gio.h> G_BEGIN_DECLS @@ -61,6 +62,17 @@ GstElement *empathy_audio_src_new (void); void empathy_audio_src_set_volume (EmpathyGstAudioSrc *src, gdouble volume); gdouble empathy_audio_src_get_volume (EmpathyGstAudioSrc *src); +typedef struct +{ + guint index; + gchar *description; +} EmpathyAudioSrcMicrophone; + +void empathy_audio_src_get_microphones_async (EmpathyGstAudioSrc *src, + GAsyncReadyCallback callback, gpointer user_data); +const GList * empathy_audio_src_get_microphones_finish (EmpathyGstAudioSrc *src, + GAsyncResult *result, GError **error); + G_END_DECLS #endif /* #ifndef __EMPATHY_GST_AUDIO_SRC_H__*/ |