/third_party/pulseaudio/src/pulse/ |
D | timeval.c | 61 tv->tv_sec = (time_t) (t / PA_USEC_PER_SEC); in pa_gettimeofday() 62 tv->tv_usec = (suseconds_t) (t % PA_USEC_PER_SEC); in pa_gettimeofday() 88 r = ((pa_usec_t) a->tv_sec - (pa_usec_t) b->tv_sec) * PA_USEC_PER_SEC; in pa_timeval_diff() 129 secs = (time_t) (v/PA_USEC_PER_SEC); in pa_timeval_add() 135 v -= (pa_usec_t) secs * PA_USEC_PER_SEC; in pa_timeval_add() 139 while ((pa_usec_t) tv->tv_usec >= PA_USEC_PER_SEC) { in pa_timeval_add() 145 tv->tv_usec -= (suseconds_t) PA_USEC_PER_SEC; in pa_timeval_add() 152 tv->tv_usec = (suseconds_t) (PA_USEC_PER_SEC-1); in pa_timeval_add() 160 secs = (time_t) (v/PA_USEC_PER_SEC); in pa_timeval_sub() 166 v -= (pa_usec_t) secs * PA_USEC_PER_SEC; in pa_timeval_sub() [all …]
|
D | sample.c | 83 …return (((pa_usec_t) (length / (size_table[spec->format] * spec->channels)) * PA_USEC_PER_SEC) / s… in pa_bytes_to_usec() 90 …return (size_t) (((t * spec->rate) / PA_USEC_PER_SEC)) * (size_table[spec->format] * spec->channel… in pa_usec_to_bytes()
|
D | timeval.h | 38 #define PA_USEC_PER_SEC ((pa_usec_t) 1000000ULL) macro
|
/third_party/pulseaudio/src/pulsecore/ |
D | core-rtclock.c | 108 tv->tv_usec = (count.QuadPart % counter_freq) * PA_USEC_PER_SEC / counter_freq; in pa_rtclock_get() 145 return counter_freq >= (int64_t) (PA_USEC_PER_SEC/PA_HRTIMER_THRESHOLD_USEC); in pa_rtclock_hrtimer() 213 (pa_usec_t) ts->tv_sec * PA_USEC_PER_SEC + in pa_timespec_load() 226 ts->tv_sec = (time_t) (v / PA_USEC_PER_SEC); in pa_timespec_store() 227 ts->tv_nsec = (long) ((v % PA_USEC_PER_SEC) * PA_NSEC_PER_USEC); in pa_timespec_store()
|
D | time-smoother_2.c | 186 time_delta_card = byte_difference / s->frame_size / s->rate * PA_USEC_PER_SEC; in pa_smoother_2_put() 210 if (s->usb_hack && time_stamp - s->smoother_start_time < 5 * PA_USEC_PER_SEC) { in pa_smoother_2_put() 272 delay = (int64_t)((double)byte_count * PA_USEC_PER_SEC / s->frame_size / s->rate); in pa_smoother_2_get_delay() 280 …n (int64_t)(((double)byte_count - s->start_pos) / s->frame_size / s->rate * PA_USEC_PER_SEC) - now; in pa_smoother_2_get_delay() 294 current_time = (pa_usec_t)(s->start_pos / s->frame_size / s->rate * PA_USEC_PER_SEC); in pa_smoother_2_get()
|
D | sample-util.c | 318 usec = (pa_usec_t) length * PA_USEC_PER_SEC; in pa_bytes_to_usec_round_up() 331 u = (u + PA_USEC_PER_SEC - 1) / PA_USEC_PER_SEC; in pa_usec_to_bytes_round_up()
|
D | log.c | 436 (unsigned long long) (a / PA_USEC_PER_SEC), in pa_log_levelv_meta() 438 (unsigned long long) (r / PA_USEC_PER_SEC), in pa_log_levelv_meta() 603 static PA_DEFINE_RATELIMIT(ratelimit, 5 * PA_USEC_PER_SEC, 10); in pa_log_ratelimit()
|
/third_party/pulseaudio/src/daemon/ |
D | cpulimit.c | 128 …), "Using %0.1f%% CPU\n", ((double) CPUTIME_INTERVAL_SOFT * (double) PA_USEC_PER_SEC) / (double) e… in signal_handler() 132 …if (((double) CPUTIME_INTERVAL_SOFT * (double) PA_USEC_PER_SEC) >= ((double) elapsed * (double) CP… in signal_handler()
|
/third_party/pulseaudio/src/modules/ |
D | module-esound-sink.c | 604 … u->smoother = pa_smoother_2_new(5*PA_USEC_PER_SEC, pa_rtclock_now(), pa_frame_size(&ss), ss.rate); in pa__init() 607 PA_USEC_PER_SEC, in pa__init() 608 PA_USEC_PER_SEC*2, in pa__init() 631 u->block_size = pa_usec_to_bytes(PA_USEC_PER_SEC/20, &ss); in pa__init()
|
D | module-suspend-on-idle.c | 91 …nk %s becomes idle, timeout in %" PRIu64 " seconds.", d->sink->name, d->timeout / PA_USEC_PER_SEC); in restart() 93 … %s becomes idle, timeout in %" PRIu64 " seconds.", d->source->name, d->timeout / PA_USEC_PER_SEC); in restart() 345 d->timeout = timeout * PA_USEC_PER_SEC; in device_new_hook_cb() 440 u->timeout = timeout * PA_USEC_PER_SEC; in pa__init()
|
D | module-combine-sink.c | 75 #define DEFAULT_ADJUST_TIME_USEC (1*PA_USEC_PER_SEC) 321 if (o->total_latency > 10*PA_USEC_PER_SEC) in adjust_rates() 1512 PA_USEC_PER_SEC, in pa__init() 1513 PA_USEC_PER_SEC*2, in pa__init() 1521 adjust_time_sec = DEFAULT_ADJUST_TIME_USEC / PA_USEC_PER_SEC; in pa__init() 1527 if (adjust_time_sec != DEFAULT_ADJUST_TIME_USEC / PA_USEC_PER_SEC) in pa__init() 1528 u->adjust_time = adjust_time_sec * PA_USEC_PER_SEC; in pa__init() 1628 …u->thread_info.smoother = pa_smoother_2_new(u->adjust_time + 5*PA_USEC_PER_SEC, pa_rtclock_now(), … in pa__init()
|
D | module-solaris.c | 921 …if (!(u->smoother = pa_smoother_new(PA_USEC_PER_SEC, PA_USEC_PER_SEC * 2, true, true, 10, pa_rtclo… in pa__init() 940 u->smoother = pa_smoother_2_new(5*PA_USEC_PER_SEC, pa_rtclock_now(), u->frame_size, ss.rate); in pa__init() 943 u->minimum_request = pa_usec_to_bytes(PA_USEC_PER_SEC / MAX_RENDER_HZ, &ss); in pa__init()
|
D | module-default-device-restore.c | 42 #define SAVE_INTERVAL (5 * PA_USEC_PER_SEC)
|
D | module-loopback.c | 72 #define DEFAULT_ADJUST_TIME_USEC (1*PA_USEC_PER_SEC) 429 run_hours = u->iteration_counter * u->real_adjust_time / PA_USEC_PER_SEC / 3600; in adjust_rates() 452 if (u->iteration_counter * u->real_adjust_time / PA_USEC_PER_SEC / 3600 > run_hours) { in adjust_rates() 1693 adjust_time_sec = DEFAULT_ADJUST_TIME_USEC / PA_USEC_PER_SEC; in pa__init() 1707 u->adjust_time = adjust_time_sec * PA_USEC_PER_SEC; in pa__init() 1792 u->log_interval = (int)(log_interval_sec * PA_USEC_PER_SEC / u->adjust_time + 0.5); in pa__init()
|
D | module-udev-detect.c | 358 (long long unsigned) (d->ratelimit.interval / PA_USEC_PER_SEC)); in verify_access() 397 PA_INIT_RATELIMIT(d->ratelimit, 10*PA_USEC_PER_SEC, 5); in card_changed()
|
D | module-sine-source.c | 53 #define BLOCK_USEC (PA_USEC_PER_SEC * 2)
|
D | module-null-source.c | 59 #define MAX_LATENCY_USEC (PA_USEC_PER_SEC * 2)
|
/third_party/pulseaudio/src/modules/raop/ |
D | raop-sink.c | 74 #define UDP_TIMING_PACKET_LOSS_MAX (30 * PA_USEC_PER_SEC) 539 uint32_t since_in_sec = since / PA_USEC_PER_SEC; in thread_func() 799 … u->smoother = pa_smoother_2_new(5*PA_USEC_PER_SEC, pa_rtclock_now(), pa_frame_size(&ss), ss.rate); in pa_raop_sink_new() 802 PA_USEC_PER_SEC, in pa_raop_sink_new() 803 PA_USEC_PER_SEC*2, in pa_raop_sink_new()
|
/third_party/pulseaudio/src/tests/ |
D | smoother-test.c | 69 for (x = 0, u = 0; x < PA_USEC_PER_SEC * 10; x += PA_USEC_PER_MSEC) { in START_TEST()
|
D | thread-mainloop-test.c | 66 a->time_new(a, pa_timeval_rtstore(&tv, pa_rtclock_now() + 5 * PA_USEC_PER_SEC, true), tcb, m); in START_TEST()
|
D | mainloop-test.c | 119 …me.te = a->time_new(a, pa_timeval_rtstore(&tv, pa_rtclock_now() + 2 * PA_USEC_PER_SEC, true), tcb,… in START_TEST()
|
D | interpol-test.c | 231 cork_now = (rtc / (2*PA_USEC_PER_SEC)) % 2 == 1; in START_TEST()
|
/third_party/pulseaudio/src/modules/rtp/ |
D | module-rtp-recv.c | 76 #define RATE_UPDATE_INTERVAL (5*PA_USEC_PER_SEC) 674 pa_core_rttime_restart(u->module->core, t, pa_rtclock_now() + DEATH_TIMEOUT * PA_USEC_PER_SEC); in check_death_event_cb() 738 …ent = pa_core_rttime_new(m->core, pa_rtclock_now() + DEATH_TIMEOUT * PA_USEC_PER_SEC, check_death_… in pa__init()
|
/third_party/pulseaudio/src/modules/bluetooth/ |
D | a2dp-codec-gst.c | 233 GST_BUFFER_TIMESTAMP(in_buf) = timestamp * PA_USEC_PER_SEC / info->ss->rate; in gst_transcode_buffer()
|
/third_party/pulseaudio/src/modules/alsa/ |
D | alsa-source.c | 66 #define DEFAULT_TSCHED_BUFFER_USEC (2*PA_USEC_PER_SEC) /* 2s */ 71 #define TSCHED_WATERMARK_VERIFY_AFTER_USEC (20*PA_USEC_PER_SEC) /* 20s */ 80 #define SMOOTHER_WINDOW_USEC (15*PA_USEC_PER_SEC) /* 15s */ 82 #define SMOOTHER_WINDOW_USEC (10*PA_USEC_PER_SEC) /* 10s */ 83 #define SMOOTHER_ADJUST_USEC (1*PA_USEC_PER_SEC) /* 1s */
|