Home
last modified time | relevance | path

Searched refs:PA_USEC_PER_MSEC (Results 1 – 25 of 39) sorted by relevance

12

/third_party/pulseaudio/src/tests/
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_MSE… in START_TEST()
77 pa_smoother_resume(s, (pa_usec_t) msec[u] * PA_USEC_PER_MSEC, true); in START_TEST()
80 …%llu\t%llu", (unsigned long long) (x/PA_USEC_PER_MSEC), (unsigned long long) (pa_smoother_get(s, x… in START_TEST()
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/
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 …]
Dprotocol-native.c418 …r_attr.fragsize = (uint32_t) pa_usec_to_bytes(DEFAULT_FRAGSIZE_MSEC*PA_USEC_PER_MSEC, &s->source_o… in fix_record_buffer_attr_pre()
618 …fragsize, &source_output->sample_spec) + (double) s->configured_source_latency) / PA_USEC_PER_MSEC, in record_stream_new()
619 …(double) pa_bytes_to_usec(s->buffer_attr.fragsize, &source_output->sample_spec) / PA_USEC_PER_MSEC, in record_stream_new()
620 (double) s->configured_source_latency / PA_USEC_PER_MSEC); in record_stream_new()
806 …) (pa_bytes_to_usec(s->buffer_attr_req.maxlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), in fix_playback_buffer_attr()
807 …ng) (pa_bytes_to_usec(s->buffer_attr_req.tlength, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), in fix_playback_buffer_attr()
808 …ong) (pa_bytes_to_usec(s->buffer_attr_req.minreq, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC), in fix_playback_buffer_attr()
809 …ng) (pa_bytes_to_usec(s->buffer_attr_req.prebuf, &s->sink_input->sample_spec) / PA_USEC_PER_MSEC)); in fix_playback_buffer_attr()
826 …tlength = (uint32_t) pa_usec_to_bytes_round_up(DEFAULT_TLENGTH_MSEC*PA_USEC_PER_MSEC, &s->sink_inp… in fix_playback_buffer_attr()
833 …process = (uint32_t) pa_usec_to_bytes_round_up(DEFAULT_PROCESS_MSEC*PA_USEC_PER_MSEC, &s->sink_inp… in fix_playback_buffer_attr()
[all …]
Ddbus-util.c135 … pa_timeval_load(t) + dbus_timeout_get_interval(d->timeout) * PA_USEC_PER_MSEC, in handle_time_event()
206 …tstore(&tv, pa_rtclock_now() + dbus_timeout_get_interval(timeout) * PA_USEC_PER_MSEC, c->use_rtclo… in add_timeout()
239 …tstore(&tv, pa_rtclock_now() + dbus_timeout_get_interval(timeout) * PA_USEC_PER_MSEC, d->connectio… in toggle_timeout()
Dlog.c437 (unsigned long long) (((a / PA_USEC_PER_MSEC)) % 1000), in pa_log_levelv_meta()
439 (unsigned long long) (((r / PA_USEC_PER_MSEC)) % 1000)); in pa_log_levelv_meta()
Drtpoll.c331 (unsigned long long) (p->awake / PA_USEC_PER_MSEC), in pa_rtpoll_run()
332 (unsigned long long) (p->slept / PA_USEC_PER_MSEC)); in pa_rtpoll_run()
Dprotocol-simple.c92 #define DEFAULT_SINK_LATENCY (300*PA_USEC_PER_MSEC)
93 #define DEFAULT_SOURCE_LATENCY (300*PA_USEC_PER_MSEC)
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/
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 …fo("Minimum possible end to end latency: %0.2f ms", (double)u->minimum_latency / PA_USEC_PER_MSEC); in update_minimum_latency()
410 …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 …n("Too many underruns, increasing latency to %0.2f ms", (double)target_latency / PA_USEC_PER_MSEC); in adjust_rates()
443 …ns, configured maximum latency of %0.2f ms is reached", (double)u->max_latency / PA_USEC_PER_MSEC); in adjust_rates()
526 …an %" 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 …]
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()
Dmodule-combine-sink.c77 #define BLOCK_USEC (PA_USEC_PER_MSEC * 200)
319 … (double) o->latency_snapshot.sink_latency / PA_USEC_PER_MSEC, (double) snapshot_latency / PA_USEC… in adjust_rates()
322 …g in one of your drivers is broken.", o->sink->name, (double) o->total_latency / PA_USEC_PER_MSEC); in adjust_rates()
341 …] avg total latency is %0.2f msec.", u->sink->name, (double) avg_total_latency / PA_USEC_PER_MSEC); in adjust_rates()
342 …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); in sink_update_requested_latency()
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()
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()
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()
Dmodule-null-sink.c61 #define BLOCK_USEC_NOREWINDS (50 * PA_USEC_PER_MSEC)
/third_party/pulseaudio/src/modules/alsa/
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) /* 200ms */
[all …]
Dalsa-sink.c72 #define DEFAULT_TSCHED_WATERMARK_USEC (20*PA_USEC_PER_MSEC) /* 20ms -- Fill up when only th…
74 #define TSCHED_WATERMARK_INC_STEP_USEC (10*PA_USEC_PER_MSEC) /* 10ms -- On underrun, increas…
75 #define TSCHED_WATERMARK_DEC_STEP_USEC (5*PA_USEC_PER_MSEC) /* 5ms -- When everything's gr…
77 #define TSCHED_WATERMARK_INC_THRESHOLD_USEC (0*PA_USEC_PER_MSEC) /* 0ms -- If the buffer level …
78 #define TSCHED_WATERMARK_DEC_THRESHOLD_USEC (100*PA_USEC_PER_MSEC) /* 100ms -- If the buffer level …
83 #define TSCHED_MIN_SLEEP_USEC (10*PA_USEC_PER_MSEC) /* 10ms -- Sleep at least 10ms …
84 #define TSCHED_MIN_WAKEUP_USEC (4*PA_USEC_PER_MSEC) /* 4ms -- Wakeup at least this…
92 #define SMOOTHER_MIN_INTERVAL (2*PA_USEC_PER_MSEC) /* 2ms -- min smoother update …
93 #define SMOOTHER_MAX_INTERVAL (200*PA_USEC_PER_MSEC) /* 200ms -- max smoother update …
375 (double) u->tsched_watermark_usec / PA_USEC_PER_MSEC); in increase_watermark()
[all …]
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/
Dtimeval.h44 #define PA_USEC_PER_MSEC ((pa_usec_t) 1000ULL) macro
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 buffer… 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 b… in pa_stream_new_with_proplist_internal()
1030 attr->tlength = pa_usec_to_bytes(ms * PA_USEC_PER_MSEC, &ss); in patch_buffer_attr()
1053 …attr->tlength = (uint32_t) pa_usec_to_bytes(250*PA_USEC_PER_MSEC, &s->sample_spec); /* 250ms of bu… in patch_buffer_attr()
Dmainloop.c842 timeout = (u + PA_USEC_PER_MSEC - 1) / PA_USEC_PER_MSEC; in usec_to_timeout()
/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-recv.c301 ….2f ms, expected %0.2f ms", (double) latency/PA_USEC_PER_MSEC, (double) s->intended_latency/PA_USE… in rtpoll_work_cb()
729 u->latency = (pa_usec_t) latency_msec * PA_USEC_PER_MSEC; in pa__init()
/third_party/pulseaudio/src/modules/bluetooth/
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 …ge(&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/
Dpacat.c473 …tr.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()

12