Home
last modified time | relevance | path

Searched refs:PA_USEC_PER_MSEC (Results 1 - 25 of 38) sorted by relevance

12

/third_party/pulseaudio/src/tests/
H A Dsmoother-test.c67 s = pa_smoother_new(700*PA_USEC_PER_MSEC, 2000*PA_USEC_PER_MSEC, false, true, 6, 0, true); in START_TEST()
69 for (x = 0, u = 0; x < PA_USEC_PER_SEC * 10; x += PA_USEC_PER_MSEC) { 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() local
77 pa_smoother_resume(s, (pa_usec_t) msec[u] * PA_USEC_PER_MSEC, true); in START_TEST() local
80 pa_log_debug("%llu\t%llu", (unsigned long long) (x/PA_USEC_PER_MSEC), (unsigned long long) (pa_smoother_get(s, x)/PA_USEC_PER_MSEC)); in START_TEST()
H A Drtstutter.c82 (uint64_t) ((((double) rand())*(double)(msec_upper-msec_lower)*PA_USEC_PER_MSEC)/RAND_MAX) + in work()
83 (uint64_t) ((uint64_t) msec_lower*PA_USEC_PER_MSEC); in work()
85 pa_log_notice("CPU%i: Freezing for %ims", PA_PTR_TO_UINT(p), (int) (usec/PA_USEC_PER_MSEC)); in work()
/third_party/pulseaudio/src/pulsecore/
H A Dcli-text.c253 (double) pa_sink_get_latency(sink) / (double) PA_USEC_PER_MSEC, in pa_sink_list_to_string()
271 (double) pa_sink_get_requested_latency(sink) / (double) PA_USEC_PER_MSEC, in pa_sink_list_to_string()
272 (double) min_latency / PA_USEC_PER_MSEC, in pa_sink_list_to_string()
273 (double) max_latency / PA_USEC_PER_MSEC); in pa_sink_list_to_string()
278 (double) pa_sink_get_fixed_latency(sink) / PA_USEC_PER_MSEC); in pa_sink_list_to_string()
364 (double) pa_source_get_latency(source) / PA_USEC_PER_MSEC, in pa_source_list_to_string()
380 (double) pa_source_get_requested_latency(source) / PA_USEC_PER_MSEC, in pa_source_list_to_string()
381 (double) min_latency / PA_USEC_PER_MSEC, in pa_source_list_to_string()
382 (double) max_latency / PA_USEC_PER_MSEC); in pa_source_list_to_string()
387 (double) pa_source_get_fixed_latency(source) / PA_USEC_PER_MSEC); in pa_source_list_to_string()
[all...]
H A Dlog.c454 (unsigned long long) (((a / PA_USEC_PER_MSEC)) % 1000), in pa_log_levelv_meta()
456 (unsigned long long) (((r / PA_USEC_PER_MSEC)) % 1000)); in pa_log_levelv_meta()
H A Ddbus-util.c135 pa_timeval_load(t) + dbus_timeout_get_interval(d->timeout) * PA_USEC_PER_MSEC, in handle_time_event()
206 ev = c->mainloop->time_new(c->mainloop, pa_timeval_rtstore(&tv, pa_rtclock_now() + dbus_timeout_get_interval(timeout) * PA_USEC_PER_MSEC, c->use_rtclock), handle_time_event, d); in add_timeout()
239 d->connection->mainloop->time_restart(ev, pa_timeval_rtstore(&tv, pa_rtclock_now() + dbus_timeout_get_interval(timeout) * PA_USEC_PER_MSEC, d->connection->use_rtclock)); in toggle_timeout()
H A Dprotocol-native.c250 s->buffer_attr.fragsize = (uint32_t) pa_usec_to_bytes(DEFAULT_FRAGSIZE_MSEC*PA_USEC_PER_MSEC, &s->source_output->sample_spec); in fix_record_buffer_attr_pre()
450 ((double) pa_bytes_to_usec(s->buffer_attr.fragsize, &source_output->sample_spec) + (double) s->configured_source_latency) / PA_USEC_PER_MSEC, in record_stream_new()
451 (double) pa_bytes_to_usec(s->buffer_attr.fragsize, &source_output->sample_spec) / PA_USEC_PER_MSEC, in record_stream_new()
452 (double) s->configured_source_latency / PA_USEC_PER_MSEC); in record_stream_new()
638 (unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.maxlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), in fix_playback_buffer_attr()
639 (unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.tlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), in fix_playback_buffer_attr()
640 (unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.minreq, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), in fix_playback_buffer_attr()
641 (unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.prebuf, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC)); in fix_playback_buffer_attr()
658 s->buffer_attr.tlength = (uint32_t) pa_usec_to_bytes_round_up(DEFAULT_TLENGTH_MSEC*PA_USEC_PER_MSEC, &s->sink_input->sample_spec); in fix_playback_buffer_attr()
665 uint32_t process = (uint32_t) pa_usec_to_bytes_round_up(DEFAULT_PROCESS_MSEC*PA_USEC_PER_MSEC, in fix_playback_buffer_attr()
[all...]
H A Drtpoll.c336 (unsigned long long) (p->awake / PA_USEC_PER_MSEC), in pa_rtpoll_run()
337 (unsigned long long) (p->slept / PA_USEC_PER_MSEC)); in pa_rtpoll_run()
H A Dprotocol-simple.c92 #define DEFAULT_SINK_LATENCY (300*PA_USEC_PER_MSEC)
93 #define DEFAULT_SOURCE_LATENCY (300*PA_USEC_PER_MSEC)
H A Dtime-smoother_2.c174 if (time_stamp < s->smoother_start_time + 100 * PA_USEC_PER_MSEC) in pa_smoother_2_put()
/third_party/pulseaudio/src/modules/
H A Dmodule-loopback.c70 #define MIN_DEVICE_LATENCY (2.5*PA_USEC_PER_MSEC)
379 u->minimum_latency += u->core->default_fragment_size_msec * PA_USEC_PER_MSEC; in update_minimum_latency()
391 u->minimum_latency += 1.5 * PA_USEC_PER_MSEC; in update_minimum_latency()
408 pa_log_info("Minimum possible end to end latency: %0.2f ms", (double)u->minimum_latency / PA_USEC_PER_MSEC); in update_minimum_latency()
410 pa_log_warn("Configured latency of %0.2f ms is smaller than minimum latency, using minimum instead", (double)u->latency / PA_USEC_PER_MSEC); in update_minimum_latency()
436 target_latency = PA_MAX(u->latency, u->minimum_latency) + 5 * PA_USEC_PER_MSEC; in adjust_rates()
440 pa_log_warn("Too many underruns, increasing latency to %0.2f ms", (double)target_latency / PA_USEC_PER_MSEC); in adjust_rates()
443 pa_log_warn("Too many underruns, configured maximum latency of %0.2f ms is reached", (double)u->max_latency / PA_USEC_PER_MSEC); in adjust_rates()
526 pa_log_debug ("Latency difference larger than %" PRIu64 " msec, skipping or inserting samples.", u->fast_adjust_threshold / PA_USEC_PER_MSEC); in adjust_rates()
549 (double) u->latency_snapshot.source_latency / PA_USEC_PER_MSEC, in adjust_rates()
[all...]
H A Dmodule-null-source.c256 max_latency_msec = MAX_LATENCY_USEC / PA_USEC_PER_MSEC; in pa__init()
262 pa_source_set_latency_range(u->source, MIN_LATENCY_USEC, max_latency_msec * PA_USEC_PER_MSEC); in pa__init()
H A Dmodule-combine-sink.c77 #define BLOCK_USEC (PA_USEC_PER_MSEC * 200)
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()
322 pa_log_warn("[%s] Total latency of output is very high (%0.2fms), most likely the audio timing in one of your drivers is broken.", o->sink->name, (double) o->total_latency / PA_USEC_PER_MSEC); in adjust_rates()
341 pa_log_info("[%s] avg total latency is %0.2f msec.", u->sink->name, (double) avg_total_latency / PA_USEC_PER_MSEC); in adjust_rates()
342 pa_log_info("[%s] target latency for all slaves is %0.2f msec.", u->sink->name, (double) target_latency / PA_USEC_PER_MSEC); in adjust_rates()
1019 pa_log_debug("Sink update requested latency %0.2f", (double) u->block_usec / PA_USEC_PER_MSEC);
H A Dmodule-tunnel.c140 #define MIN_NETWORK_LATENCY_USEC (8*PA_USEC_PER_MSEC)
1815 u->tlength = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * u->latency, &u->sink->sample_spec); in setup_complete_callback()
1816 u->minreq = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * u->latency / 4, &u->sink->sample_spec); in setup_complete_callback()
1819 u->fragsize = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * u->latency, &u->source->sample_spec); in setup_complete_callback()
2150 pa_sink_set_fixed_latency(u->sink, u->latency * PA_USEC_PER_MSEC); in create_sink()
2195 pa_source_set_fixed_latency(u->source, u->latency * PA_USEC_PER_MSEC); in create_source()
2473 u->reconnect_interval_us = reconnect_interval_ms * PA_USEC_PER_MSEC; in do_init()
H A Dmodule-tunnel-sink-new.c63 #define MAX_LATENCY_USEC (200 * PA_USEC_PER_MSEC)
725 u->reconnect_interval_us = reconnect_interval_ms * PA_USEC_PER_MSEC; in do_init()
H A Dmodule-sine-source.c129 pa_log_debug("new block msec = %lu", (unsigned long) (u->block_usec / PA_USEC_PER_MSEC)); in source_update_requested_latency_cb()
/third_party/pulseaudio/src/modules/alsa/
H A Dalsa-sink.c72 #define DEFAULT_TSCHED_WATERMARK_USEC (20*PA_USEC_PER_MSEC) /* 20ms -- Fill up when only this much is left in the buffer */
74 #define TSCHED_WATERMARK_INC_STEP_USEC (10*PA_USEC_PER_MSEC) /* 10ms -- On underrun, increase watermark by this */
75 #define TSCHED_WATERMARK_DEC_STEP_USEC (5*PA_USEC_PER_MSEC) /* 5ms -- When everything's great, decrease watermark by this */
77 #define TSCHED_WATERMARK_INC_THRESHOLD_USEC (0*PA_USEC_PER_MSEC) /* 0ms -- If the buffer level ever below this threshold, increase the watermark */
78 #define TSCHED_WATERMARK_DEC_THRESHOLD_USEC (100*PA_USEC_PER_MSEC) /* 100ms -- If the buffer level didn't drop below this threshold in the verification time, decrease the watermark */
83 #define TSCHED_MIN_SLEEP_USEC (10*PA_USEC_PER_MSEC) /* 10ms -- Sleep at least 10ms on each iteration */
84 #define TSCHED_MIN_WAKEUP_USEC (4*PA_USEC_PER_MSEC) /* 4ms -- Wakeup at least this long before the buffer runs empty*/
92 #define SMOOTHER_MIN_INTERVAL (2*PA_USEC_PER_MSEC) /* 2ms -- min smoother update interval */
93 #define SMOOTHER_MAX_INTERVAL (200*PA_USEC_PER_MSEC) /* 200ms -- max smoother update interval */
375 (double) u->tsched_watermark_usec / PA_USEC_PER_MSEC); in increase_watermark()
[all...]
H A Dalsa-source.c67 #define DEFAULT_TSCHED_WATERMARK_USEC (20*PA_USEC_PER_MSEC) /* 20ms */
69 #define TSCHED_WATERMARK_INC_STEP_USEC (10*PA_USEC_PER_MSEC) /* 10ms */
70 #define TSCHED_WATERMARK_DEC_STEP_USEC (5*PA_USEC_PER_MSEC) /* 5ms */
72 #define TSCHED_WATERMARK_INC_THRESHOLD_USEC (0*PA_USEC_PER_MSEC) /* 0ms */
73 #define TSCHED_WATERMARK_DEC_THRESHOLD_USEC (100*PA_USEC_PER_MSEC) /* 100ms */
74 #define TSCHED_WATERMARK_STEP_USEC (10*PA_USEC_PER_MSEC) /* 10ms */
76 #define TSCHED_MIN_SLEEP_USEC (10*PA_USEC_PER_MSEC) /* 10ms */
77 #define TSCHED_MIN_WAKEUP_USEC (4*PA_USEC_PER_MSEC) /* 4ms */
85 #define SMOOTHER_MIN_INTERVAL (2*PA_USEC_PER_MSEC) /* 2ms */
86 #define SMOOTHER_MAX_INTERVAL (200*PA_USEC_PER_MSEC) /* 20
[all...]
H A Dalsa-util.c1189 (unsigned long) (pa_bytes_to_usec(k, ss) / PA_USEC_PER_MSEC), in pa_alsa_safe_avail()
1256 (unsigned long) (pa_bytes_to_usec(abs_k, ss) / PA_USEC_PER_MSEC), in pa_alsa_safe_delay()
1283 (unsigned long) (pa_bytes_to_usec(k, ss) / PA_USEC_PER_MSEC), in pa_alsa_safe_delay()
1345 (unsigned long) (pa_bytes_to_usec(k, ss) / PA_USEC_PER_MSEC), in pa_alsa_safe_mmap_begin()
/third_party/pulseaudio/src/pulse/
H A Dtimeval.h44 #define PA_USEC_PER_MSEC ((pa_usec_t) 1000ULL) macro
H A Dstream.c48 #define AUTO_TIMING_INTERVAL_START_USEC (10*PA_USEC_PER_MSEC)
49 #define AUTO_TIMING_INTERVAL_END_USEC (1500*PA_USEC_PER_MSEC)
51 #define SMOOTHER_HISTORY_TIME (5000*PA_USEC_PER_MSEC)
53 #define SMOOTHER_ADJUST_TIME (1000*PA_USEC_PER_MSEC)
157 s->buffer_attr.tlength = (uint32_t) pa_usec_to_bytes(250*PA_USEC_PER_MSEC, ss); /* 250ms of buffering */ in pa_stream_new_with_proplist_internal()
166 s->buffer_attr.tlength = (uint32_t) pa_usec_to_bytes(250*PA_USEC_PER_MSEC, &tmp_ss); /* 250ms of buffering */ in pa_stream_new_with_proplist_internal()
1034 attr->tlength = pa_usec_to_bytes(ms * PA_USEC_PER_MSEC, &ss); in patch_buffer_attr()
1057 attr->tlength = (uint32_t) pa_usec_to_bytes(250*PA_USEC_PER_MSEC, &s->sample_spec); /* 250ms of buffering */ in patch_buffer_attr()
H A Dmainloop.c842 timeout = (u + PA_USEC_PER_MSEC - 1) / PA_USEC_PER_MSEC; in usec_to_timeout()
/third_party/pulseaudio/src/modules/rtp/
H A Dmodule-rtp-recv.c301 pa_log_debug("Write index deviates by %0.2f ms, expected %0.2f ms", (double) latency/PA_USEC_PER_MSEC, (double) s->intended_latency/PA_USEC_PER_MSEC); in rtpoll_work_cb()
729 u->latency = (pa_usec_t) latency_msec * PA_USEC_PER_MSEC; in pa__init()
H A Dmodule-rtp-send.c464 (unsigned long long) pa_source_output_set_requested_latency(o, pa_bytes_to_usec(mtu, &o->sample_spec)) / PA_USEC_PER_MSEC); in pa__init()
/third_party/pulseaudio/src/modules/bluetooth/
H A Dmodule-bluez5-device.c71 #define FIXED_LATENCY_PLAYBACK_A2DP (25 * PA_USEC_PER_MSEC)
72 #define FIXED_LATENCY_PLAYBACK_SCO (25 * PA_USEC_PER_MSEC)
73 #define FIXED_LATENCY_RECORD_A2DP (25 * PA_USEC_PER_MSEC)
74 #define FIXED_LATENCY_RECORD_SCO (25 * PA_USEC_PER_MSEC)
1660 && pa_timeval_age(&tv_last_output_rate_change) >= u->device->output_rate_refresh_interval_ms * PA_USEC_PER_MSEC) { in thread_func()
1673 sleep_for = PA_USEC_PER_MSEC * 500; in thread_func()
/third_party/pulseaudio/src/utils/
H A Dpacat.c473 buffer_attr.fragsize = buffer_attr.tlength = pa_usec_to_bytes(latency_msec * PA_USEC_PER_MSEC, &sample_spec); in context_state_callback()
482 buffer_attr.minreq = pa_usec_to_bytes(process_time_msec * PA_USEC_PER_MSEC, &sample_spec); in context_state_callback()

Completed in 35 milliseconds

12