Searched refs:latency_snapshot (Results 1 - 3 of 3) sorted by relevance
/third_party/pulseaudio/src/modules/ |
H A D | module-loopback.c | 161 } latency_snapshot; member 481 buffer = u->latency_snapshot.loopback_memblockq_length; in adjust_rates() 482 if (u->latency_snapshot.recv_counter <= u->latency_snapshot.send_counter) in adjust_rates() 483 buffer += (size_t) (u->latency_snapshot.send_counter - u->latency_snapshot.recv_counter); in adjust_rates() 485 buffer = PA_CLIP_SUB(buffer, (size_t) (u->latency_snapshot.recv_counter - u->latency_snapshot.send_counter)); in adjust_rates() 488 snapshot_delay = u->latency_snapshot.source_timestamp - u->latency_snapshot in adjust_rates() [all...] |
H A D | module-combine-sink.c | 132 } latency_snapshot; member 292 time_difference = (int64_t)now - (int64_t)o->latency_snapshot.timestamp; in adjust_rates() 296 snapshot_latency = o->latency_snapshot.sink_latency in adjust_rates() 297 + pa_bytes_to_usec(o->latency_snapshot.output_memblockq_size, &o->sink_input->sample_spec) in adjust_rates() 302 snapshot_latency += pa_bytes_to_usec(rdata.send_counter - o->latency_snapshot.receive_counter, &o->sink_input->sample_spec); in adjust_rates() 313 if (o->latency_snapshot.sink_latency > max_sink_latency) { in adjust_rates() 314 max_sink_latency = o->latency_snapshot.sink_latency; in adjust_rates() 319 pa_log_debug("[%s] Snapshot sink latency = %0.2fms, total snapshot latency = %0.2fms", o->sink->name, (double) o->latency_snapshot.sink_latency / PA_USEC_PER_MSEC, (double) snapshot_latency / PA_USEC_PER_MSEC); in adjust_rates() 769 o->latency_snapshot.output_memblockq_size = pa_memblockq_get_length(o->memblockq); in sink_input_process_msg() 772 o->latency_snapshot in sink_input_process_msg() [all...] |
/third_party/pulseaudio/src/modules/echo-cancel/ |
H A D | module-echo-cancel.c | 343 struct snapshot latency_snapshot; in time_callback() local 354 pa_asyncmsgq_send(u->source_output->source->asyncmsgq, PA_MSGOBJECT(u->source_output), SOURCE_OUTPUT_MESSAGE_LATENCY_SNAPSHOT, &latency_snapshot, 0, NULL); in time_callback() 355 pa_asyncmsgq_send(u->sink_input->sink->asyncmsgq, PA_MSGOBJECT(u->sink_input), SINK_INPUT_MESSAGE_LATENCY_SNAPSHOT, &latency_snapshot, 0, NULL); in time_callback() 358 diff_time = calc_diff(u, &latency_snapshot); in time_callback() 709 struct snapshot latency_snapshot; in do_resync() local 715 pa_asyncmsgq_send(u->sink_input->sink->asyncmsgq, PA_MSGOBJECT(u->sink_input), SINK_INPUT_MESSAGE_LATENCY_SNAPSHOT, &latency_snapshot, 0, NULL); in do_resync() 720 source_output_snapshot_within_thread(u, &latency_snapshot); in do_resync() 723 diff_time = calc_diff(u, &latency_snapshot); in do_resync()
|
Completed in 7 milliseconds