diff options
Diffstat (limited to 'src/modules/echo-cancel/module-echo-cancel.c')
-rw-r--r-- | src/modules/echo-cancel/module-echo-cancel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/echo-cancel/module-echo-cancel.c b/src/modules/echo-cancel/module-echo-cancel.c index b6c82a5b4..7e701172c 100644 --- a/src/modules/echo-cancel/module-echo-cancel.c +++ b/src/modules/echo-cancel/module-echo-cancel.c @@ -821,8 +821,7 @@ static void source_output_snapshot_within_thread(struct userdata *u, struct snap size_t delay, rlen, plen; pa_usec_t now, latency; - now = pa_rtclock_now(); - latency = pa_source_get_latency_within_thread(u->source_output->source); + pa_source_get_latency_values_within_thread(u->source_output->source, &latency, &now); delay = pa_memblockq_get_length(u->source_output->thread_info.delay_memblockq); delay = (u->source_output->thread_info.resampler ? pa_resampler_request(u->source_output->thread_info.resampler, delay) : delay); @@ -900,8 +899,7 @@ static int sink_input_process_msg_cb(pa_msgobject *obj, int code, void *data, in pa_sink_input_assert_io_context(u->sink_input); - now = pa_rtclock_now(); - latency = pa_sink_get_latency_within_thread(u->sink_input->sink); + pa_sink_get_latency_values_within_thread(u->sink_input->sink, &latency, &now); delay = pa_memblockq_get_length(u->sink_input->thread_info.render_memblockq); delay = (u->sink_input->thread_info.resampler ? pa_resampler_request(u->sink_input->thread_info.resampler, delay) : delay); |