aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-audio-src.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-audio-src.c')
-rw-r--r--src/empathy-audio-src.c12
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);