diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-11-10 03:00:10 +0800 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2011-11-11 22:01:07 +0800 |
commit | 8b9ee2a0f048ce6263efe0d0660ed04a53861adf (patch) | |
tree | 9ee947393f466ccf04f2154f910a8ac70e8a49cb /src/empathy-audio-src.c | |
parent | ffaa3afe49651493d0dcb01eba1b6dcd1134eed1 (diff) | |
download | gsoc2013-empathy-8b9ee2a0f048ce6263efe0d0660ed04a53861adf.tar gsoc2013-empathy-8b9ee2a0f048ce6263efe0d0660ed04a53861adf.tar.gz gsoc2013-empathy-8b9ee2a0f048ce6263efe0d0660ed04a53861adf.tar.bz2 gsoc2013-empathy-8b9ee2a0f048ce6263efe0d0660ed04a53861adf.tar.lz gsoc2013-empathy-8b9ee2a0f048ce6263efe0d0660ed04a53861adf.tar.xz gsoc2013-empathy-8b9ee2a0f048ce6263efe0d0660ed04a53861adf.tar.zst gsoc2013-empathy-8b9ee2a0f048ce6263efe0d0660ed04a53861adf.zip |
Don't turn on echo cancellation on the source if it's for raw conferences
https://bugzilla.gnome.org/show_bug.cgi?id=663842
Diffstat (limited to 'src/empathy-audio-src.c')
-rw-r--r-- | src/empathy-audio-src.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c index 350a29a8d..24a2e8ed4 100644 --- a/src/empathy-audio-src.c +++ b/src/empathy-audio-src.c @@ -53,8 +53,6 @@ enum { }; /* private structure */ -typedef struct _EmpathyGstAudioSrcPrivate EmpathyGstAudioSrcPrivate; - struct _EmpathyGstAudioSrcPrivate { gboolean dispose_has_run; @@ -207,7 +205,7 @@ create_src (void) if (src == NULL) return NULL; - empathy_call_set_stream_properties (src); + empathy_call_set_stream_properties (src, TRUE); return src; } @@ -220,6 +218,7 @@ empathy_audio_src_init (EmpathyGstAudioSrc *obj) GstElement *capsfilter; GstCaps *caps; + obj->priv = priv; priv->peak_level = -G_MAXDOUBLE; priv->lock = g_mutex_new (); @@ -517,6 +516,13 @@ empathy_audio_src_new (void) } void +empathy_audio_src_set_echo_cancel (EmpathyGstAudioSrc *src, + gboolean enable) +{ + empathy_call_set_stream_properties (src->priv->src, enable); +} + +void empathy_audio_src_set_volume (EmpathyGstAudioSrc *src, gdouble volume) { EmpathyGstAudioSrcPrivate *priv = EMPATHY_GST_AUDIO_SRC_GET_PRIVATE (src); |