/third_party/pulseaudio/src/pulsecore/ |
H A D | time-smoother_2.h | 26 pa_smoother_2* pa_smoother_2_new(pa_usec_t window, pa_usec_t time_stamp, uint32_t frame_size, uint32_t rate); 30 void pa_smoother_2_reset(pa_smoother_2 *s, pa_usec_t time_stamp); 32 void pa_smoother_2_pause(pa_smoother_2 *s, pa_usec_t time_stamp); 34 void pa_smoother_2_resume(pa_smoother_2 *s, pa_usec_t time_stamp); 37 void pa_smoother_2_put(pa_smoother_2 *s, pa_usec_t time_stamp, int64_t byte_count); 40 int64_t pa_smoother_2_get_delay(pa_smoother_2 *s, pa_usec_t time_stamp, uint64_t byte_count); 42 pa_usec_t pa_smoother_2_get(pa_smoother_2 *s, pa_usec_t time_stamp); 44 pa_usec_t pa_smoother_2_translat [all...] |
H A D | time-smoother.h | 29 pa_usec_t x_adjust_time, 30 pa_usec_t x_history_time, 34 pa_usec_t x_offset, 40 void pa_smoother_put(pa_smoother *s, pa_usec_t x, pa_usec_t y); 43 pa_usec_t pa_smoother_get(pa_smoother *s, pa_usec_t x); 46 pa_usec_t pa_smoother_translate(pa_smoother *s, pa_usec_t x, pa_usec_t y_dela [all...] |
H A D | time-smoother.c | 60 pa_usec_t adjust_time, history_time; 62 pa_usec_t time_offset; 64 pa_usec_t px, py; /* Point p, where we want to reach stability */ 67 pa_usec_t ex, ey; /* Point e, which we estimated before and need to smooth to */ 69 pa_usec_t ry; /* The original y value for ex */ 72 pa_usec_t history_x[HISTORY_MAX], history_y[HISTORY_MAX]; 76 pa_usec_t last_y, last_x; 86 pa_usec_t pause_time; 92 pa_usec_t adjust_time, in pa_smoother_new() 93 pa_usec_t history_tim in pa_smoother_new() [all...] |
H A D | time-smoother_2.c | 35 pa_usec_t smoother_window_time; 51 pa_usec_t start_time; 56 pa_usec_t fixup_time; 62 pa_usec_t resume_time; 63 pa_usec_t pause_time; 64 pa_usec_t smoother_start_time; 65 pa_usec_t last_time; 78 pa_smoother_2* pa_smoother_2_new(pa_usec_t window, pa_usec_t time_stamp, uint32_t frame_size, uint32_t rate) { in pa_smoother_2_new() 104 void pa_smoother_2_set_rate(pa_smoother_2 *s, pa_usec_t time_stam [all...] |
H A D | source.h | 243 pa_usec_t requested_latency; 249 pa_usec_t min_latency; /* we won't go below this latency */ 250 pa_usec_t max_latency; /* An upper limit for the latencies */ 252 pa_usec_t fixed_latency; /* for sources with PA_SOURCE_DYNAMIC_LATENCY this is 0 */ 370 void pa_source_set_latency_range(pa_source *s, pa_usec_t min_latency, pa_usec_t max_latency); 371 void pa_source_set_fixed_latency(pa_source *s, pa_usec_t latency); 386 pa_usec_t pa_source_get_latency(pa_source *s); 387 pa_usec_t pa_source_get_requested_latency(pa_source *s); 388 void pa_source_get_latency_range(pa_source *s, pa_usec_t *min_latenc [all...] |
H A D | sink.h | 288 pa_usec_t requested_latency; 307 pa_usec_t min_latency; /* we won't go below this latency */ 308 pa_usec_t max_latency; /* An upper limit for the latencies */ 313 pa_usec_t fixed_latency; /* for sinks with PA_SINK_DYNAMIC_LATENCY this is 0 */ 437 void pa_sink_set_latency_range(pa_sink *s, pa_usec_t min_latency, pa_usec_t max_latency); 438 void pa_sink_set_fixed_latency(pa_sink *s, pa_usec_t latency); 457 pa_usec_t pa_sink_get_latency(pa_sink *s); 458 pa_usec_t pa_sink_get_requested_latency(pa_sink *s); 459 void pa_sink_get_latency_range(pa_sink *s, pa_usec_t *min_latenc [all...] |
H A D | sink-input.h | 218 pa_usec_t (*get_latency) (pa_sink_input *i); /* may be NULL */ 274 pa_usec_t requested_sink_latency; 277 pa_usec_t move_start_time; 278 pa_usec_t origin_sink_latency; 374 pa_usec_t pa_sink_input_set_requested_latency(pa_sink_input *i, pa_usec_t usec); 399 pa_usec_t pa_sink_input_get_latency(pa_sink_input *i, pa_usec_t *sink_latency); 429 pa_usec_t pa_sink_input_get_requested_latency(pa_sink_input *i); 443 pa_usec_t pa_sink_input_set_requested_latency_within_threa [all...] |
H A D | core-rtclock.h | 32 pa_usec_t pa_rtclock_age(const struct timeval *tv); 47 pa_usec_t pa_timespec_load(const struct timespec *ts); 48 struct timespec* pa_timespec_store(struct timespec *ts, pa_usec_t v); 51 struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, bool rtclock);
|
H A D | source-output.h | 181 pa_usec_t (*get_latency) (pa_source_output *o); /* may be NULL */ 221 pa_usec_t requested_source_latency; 311 pa_usec_t pa_source_output_set_requested_latency(pa_source_output *o, pa_usec_t usec); 325 pa_usec_t pa_source_output_get_latency(pa_source_output *o, pa_usec_t *source_latency); 353 pa_usec_t pa_source_output_get_requested_latency(pa_source_output *o); 365 pa_usec_t pa_source_output_set_requested_latency_within_thread(pa_source_output *o, pa_usec_t usec);
|
H A D | core-rtclock.c | 59 pa_usec_t pa_rtclock_age(const struct timeval *tv) { in pa_rtclock_age() 207 pa_usec_t pa_timespec_load(const struct timespec *ts) { in pa_timespec_load() 213 (pa_usec_t) ts->tv_sec * PA_USEC_PER_SEC + in pa_timespec_load() 214 (pa_usec_t) ts->tv_nsec / PA_NSEC_PER_USEC; in pa_timespec_load() 217 struct timespec* pa_timespec_store(struct timespec *ts, pa_usec_t v) { in pa_timespec_store() 253 struct timeval* pa_timeval_rtstore(struct timeval *tv, pa_usec_t v, bool rtclock) { in pa_timeval_rtstore()
|
H A D | protocol-native.h | 84 pa_usec_t configured_source_latency; 89 pa_usec_t current_monitor_latency; 90 pa_usec_t current_source_latency; 125 pa_usec_t configured_sink_latency; 134 pa_usec_t current_sink_latency;
|
H A D | source.c | 53 pa_usec_t at; 1159 pa_usec_t pa_source_get_latency(pa_source *s) { in pa_source_get_latency() 1181 return (pa_usec_t)usec; in pa_source_get_latency() 2126 if (o->thread_info.requested_source_latency != (pa_usec_t) -1) in pa_source_process_msg() 2252 pa_usec_t *usec = userdata; in pa_source_process_msg() 2258 if (*usec == (pa_usec_t) -1) in pa_source_process_msg() 2265 pa_usec_t *r = userdata; in pa_source_process_msg() 2273 pa_usec_t *r = userdata; in pa_source_process_msg() 2283 *((pa_usec_t*) userdata) = s->thread_info.fixed_latency; in pa_source_process_msg() 2288 pa_source_set_fixed_latency_within_thread(s, (pa_usec_t) offse in pa_source_process_msg() [all...] |
H A D | ratelimit.h | 28 pa_usec_t interval; 31 pa_usec_t begin;
|
H A D | sink.c | 62 pa_usec_t at; 1594 pa_usec_t pa_sink_get_latency(pa_sink *s) { in pa_sink_get_latency() 1622 return (pa_usec_t)usec; in pa_sink_get_latency() 2691 if (i->thread_info.requested_sink_latency != (pa_usec_t) -1) in pa_sink_process_msg() 2806 pa_usec_t usec = 0; in pa_sink_process_msg() 2854 if (i->thread_info.requested_sink_latency != (pa_usec_t) -1) in pa_sink_process_msg() 2967 pa_usec_t *usec = userdata; in pa_sink_process_msg() 2973 if (*usec == (pa_usec_t) -1) in pa_sink_process_msg() 2980 pa_usec_t *r = userdata; in pa_sink_process_msg() 2988 pa_usec_t * in pa_sink_process_msg() [all...] |
/third_party/pulseaudio/src/pulse/ |
H A D | timeval.c | 73 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) { in pa_timeval_diff() 74 pa_usec_t r; in pa_timeval_diff() 88 r = ((pa_usec_t) a->tv_sec - (pa_usec_t) b->tv_sec) * PA_USEC_PER_SEC; in pa_timeval_diff() 92 r += (pa_usec_t) a->tv_usec - (pa_usec_t) b->tv_usec; in pa_timeval_diff() 94 r -= (pa_usec_t) b->tv_usec - (pa_usec_t) a->tv_usec; in pa_timeval_diff() 118 pa_usec_t pa_timeval_age(const struct timeval *tv) { in pa_timeval_age() 125 struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t [all...] |
H A D | timeval.h | 35 #define PA_MSEC_PER_SEC ((pa_usec_t) 1000ULL) 38 #define PA_USEC_PER_SEC ((pa_usec_t) 1000000ULL) 44 #define PA_USEC_PER_MSEC ((pa_usec_t) 1000ULL) 53 #define PA_USEC_INVALID ((pa_usec_t) -1) 56 #define PA_USEC_MAX ((pa_usec_t) -2) 65 pa_usec_t pa_timeval_diff(const struct timeval *a, const struct timeval *b) PA_GCC_PURE; 71 pa_usec_t pa_timeval_age(const struct timeval *tv); 74 struct timeval* pa_timeval_add(struct timeval *tv, pa_usec_t v); 77 struct timeval* pa_timeval_sub(struct timeval *tv, pa_usec_t v); 80 struct timeval* pa_timeval_store(struct timeval *tv, pa_usec_t [all...] |
H A D | introspect.h | 278 pa_usec_t latency; /**< Length of queued audio in the output buffer. */ 282 pa_usec_t configured_latency; /**< The latency this device has been configured to. \since 0.9.11 */ 383 pa_usec_t latency; /**< Length of filled record buffer of this source. */ 387 pa_usec_t configured_latency; /**< The latency this device has been configured to. \since 0.9.11 */ 655 pa_usec_t buffer_usec; /**< Latency due to buffering in sink input, see pa_timing_info for details. */ 656 pa_usec_t sink_usec; /**< Latency of the sink device, see pa_timing_info for details. */ 706 pa_usec_t buffer_usec; /**< Latency due to buffering in the source output, see pa_timing_info for details. */ 707 pa_usec_t source_usec; /**< Latency of the source device, see pa_timing_info for details. */ 777 pa_usec_t duration; /**< Duration of this entry */
|
H A D | sample.h | 264 typedef uint64_t pa_usec_t; typedef 283 pa_usec_t pa_bytes_to_usec(uint64_t length, const pa_sample_spec *spec) PA_GCC_PURE; 289 size_t pa_usec_to_bytes(pa_usec_t t, const pa_sample_spec *spec) PA_GCC_PURE;
|
/third_party/pulseaudio/src/tests/ |
H A D | smoother-test.c | 33 pa_usec_t x; in START_TEST() 71 while (u < PA_ELEMENTSOF(msec) && (pa_usec_t) msec[u]*PA_USEC_PER_MSEC < x) { in START_TEST() 72 pa_smoother_put(s, (pa_usec_t) msec[u] * PA_USEC_PER_MSEC, (pa_usec_t) msec[u+1] * PA_USEC_PER_MSEC); in START_TEST() 77 pa_smoother_resume(s, (pa_usec_t) msec[u] * PA_USEC_PER_MSEC, true); in START_TEST()
|
/third_party/pulseaudio/src/modules/ |
H A D | module-combine-sink.c | 126 pa_usec_t total_latency; 128 pa_usec_t timestamp; 129 pa_usec_t sink_latency; 154 pa_usec_t adjust_time; 165 pa_usec_t block_usec; 166 pa_usec_t default_min_latency; 167 pa_usec_t default_max_latency; 176 pa_usec_t timestamp; 186 pa_usec_t snapshot_time; 188 pa_usec_t render_timestam [all...] |
H A D | module-loopback.c | 94 pa_usec_t adjust_time_stamp; 95 pa_usec_t real_adjust_time; 96 pa_usec_t real_adjust_time_sum; 99 pa_usec_t latency; 100 pa_usec_t max_latency; 101 pa_usec_t adjust_time; 102 pa_usec_t fast_adjust_threshold; 107 pa_usec_t min_source_latency; 108 pa_usec_t max_source_latency; 109 pa_usec_t min_sink_latenc [all...] |
H A D | module-sine-source.c | 67 pa_usec_t block_usec; /* how much to push at once */ 68 pa_usec_t timestamp; /* when to push next */ 91 pa_usec_t now, left_to_fill; in source_process_msg() 126 if (u->block_usec == (pa_usec_t) -1) in source_update_requested_latency_cb() 132 static void process_render(struct userdata *u, pa_usec_t now) { in process_render() 171 pa_usec_t now; in thread_func()
|
H A D | module-null-sink.c | 72 pa_usec_t block_usec; 73 pa_usec_t timestamp; 103 pa_usec_t now; in sink_process_msg() 165 if (u->block_usec == (pa_usec_t) -1) in sink_update_requested_latency_cb() 195 static void process_rewind(struct userdata *u, pa_usec_t now) { in process_rewind() 197 pa_usec_t delay; in process_rewind() 231 static void process_render(struct userdata *u, pa_usec_t now) { in process_render() 279 pa_usec_t now = 0; in thread_func()
|
H A D | module-null-source.c | 73 pa_usec_t block_usec; 74 pa_usec_t timestamp; 93 pa_usec_t now; in source_process_msg() 129 if (u->block_usec == (pa_usec_t)-1) in source_update_requested_latency_cb() 157 pa_usec_t now; in thread_func()
|
/third_party/pulseaudio/src/modules/raop/ |
H A D | raop-sink.c | 99 pa_usec_t block_usec; 102 pa_usec_t delay; 103 pa_usec_t start; 137 pa_usec_t now; in sink_get_latency() 198 pa_usec_t now; in sink_process_msg() 224 pa_usec_t now; in sink_process_msg() 329 pa_usec_t now; in sink_set_state_in_io_thread_cb() 426 pa_usec_t last_timing = 0; in thread_func() 428 pa_usec_t intvl = 0; in thread_func() 444 pa_usec_t no in thread_func() [all...] |