aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/empathy-audio-sink.c4
-rw-r--r--src/empathy-audio-src.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-audio-sink.c b/src/empathy-audio-sink.c
index d912e1d2d..5ab14b541 100644
--- a/src/empathy-audio-sink.c
+++ b/src/empathy-audio-sink.c
@@ -220,6 +220,10 @@ create_sink (EmpathyGstAudioSink *self)
empathy_call_set_stream_properties (sink, self->priv->echo_cancel);
+ /* Set latency (buffering on the PulseAudio side) of 40ms and transfer data
+ * in 10ms chunks */
+ g_object_set (sink, "buffer-time", 40000, "latency-time", 10000, NULL);
+
return sink;
}
diff --git a/src/empathy-audio-src.c b/src/empathy-audio-src.c
index 635c87d24..aa271fa1c 100644
--- a/src/empathy-audio-src.c
+++ b/src/empathy-audio-src.c
@@ -331,6 +331,9 @@ create_src (void)
empathy_call_set_stream_properties (src, TRUE);
+ /* Set latency (buffering on the PulseAudio side) of 20ms */
+ g_object_set (src, "buffer-time", 20000, NULL);
+
return src;
}