Lines Matching defs:usec
1595 int64_t usec = 0;
1613 pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_LATENCY, &usec, 0, NULL) == 0);
1615 /* the return value is unsigned, so check that the offset can be added to usec without
1617 if (-s->port_latency_offset <= usec)
1618 usec += s->port_latency_offset;
1620 usec = 0;
1622 return (pa_usec_t)usec;
1627 int64_t usec = 0;
1646 o->process_msg(o, PA_SINK_MESSAGE_GET_LATENCY, &usec, 0, NULL);
1649 usec += s->thread_info.port_latency_offset;
1650 if (!allow_negative && usec < 0)
1651 usec = 0;
1653 return usec;
2806 pa_usec_t usec = 0;
2828 usec = pa_sink_get_latency_within_thread(s, false);
2829 nbytes = pa_usec_to_bytes(usec, &s->sample_spec);
2834 usec = pa_rtclock_now() - i->thread_info.move_start_time;
2835 delay_bytes = pa_usec_to_bytes(usec, &s->sample_spec);
2967 pa_usec_t *usec = userdata;
2968 *usec = pa_sink_get_requested_latency_within_thread(s);
2973 if (*usec == (pa_usec_t) -1)
2974 *usec = s->thread_info.max_latency;
3170 pa_usec_t usec = 0;
3179 pa_assert_se(pa_asyncmsgq_send(s->asyncmsgq, PA_MSGOBJECT(s), PA_SINK_MESSAGE_GET_REQUESTED_LATENCY, &usec, 0, NULL) == 0);
3181 return usec;
3839 pa_log_debug("Volume change to %d at %llu was written %llu usec late",
3853 pa_log_debug("Next volume change in %lld usec", (long long) (s->thread_info.volume_changes->at - now));