Home
last modified time | relevance | path

Searched refs:pa_usec_to_bytes (Results 1 – 25 of 32) sorted by relevance

12

/third_party/pulseaudio/src/modules/
Dmodule-null-sink.c142 nbytes = pa_usec_to_bytes(u->block_usec, &s->sample_spec); in sink_update_requested_latency_cb()
194 in_buffer = pa_usec_to_bytes(delay, &u->sink->sample_spec); in process_rewind()
385 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in pa__init()
Dmodule-null-source.c157 …if (timer_elapsed && (chunk.length = pa_usec_to_bytes(now - u->timestamp, &u->source->sample_spec)… in thread_func()
254 pa_usec_to_bytes(u->block_usec, &u->source->sample_spec); in pa__init()
Dmodule-tunnel-sink-new.c334 bufferattr.tlength = pa_usec_to_bytes(requested_latency, &u->sink->sample_spec); in context_state_cb()
377 nbytes = pa_usec_to_bytes(block_usec, &s->sample_spec); in sink_update_requested_latency_cb()
Dmodule-tunnel-source-new.c332 bufferattr.fragsize = pa_usec_to_bytes(requested_latency, &u->source->sample_spec); in context_state_cb()
373 nbytes = pa_usec_to_bytes(block_usec, &s->sample_spec); in source_update_requested_latency_cb()
Dmodule-virtual-source.c413 … u->skip = pa_usec_to_bytes(PA_CLIP_SUB(pa_source_get_latency_within_thread(o->source, false), in source_output_state_change_cb()
682 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in pa__init()
Dmodule-solaris.c906 u->minimum_request = pa_usec_to_bytes(PA_USEC_PER_SEC / MAX_RENDER_HZ, &ss); in pa__init()
913 u->buffer_size = pa_usec_to_bytes(1000 * buffer_length_msec, &ss); in pa__init()
Dmodule-pipe-sink.c176 nbytes = pa_usec_to_bytes(u->block_usec, &s->sample_spec); in sink_update_requested_latency_cb()
Dmodule-esound-sink.c588 u->block_size = pa_usec_to_bytes(PA_USEC_PER_SEC/20, &ss); in pa__init()
Dmodule-tunnel.c1661 …u->tlength = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * DEFAULT_TLENGTH_MSEC, &u->sink->sample… in setup_complete_callback()
1662 …u->minreq = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * DEFAULT_MINREQ_MSEC, &u->sink->sample_s… in setup_complete_callback()
1665 …u->fragsize = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * DEFAULT_FRAGSIZE_MSEC, &u->source->sa… in setup_complete_callback()
Dmodule-combine-sink.c765 max_request = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in update_max_request()
1448 nbytes = pa_usec_to_bytes(BLOCK_USEC, &u->sink->sample_spec); in pa__init()
Dmodule-loopback.c536 …requested_memblockq_length = pa_usec_to_bytes(requested_buffer_latency, &u->sink_input->sample_spe… in memblockq_adjust()
1574 …pa_memblockq_seek(u->memblockq, pa_usec_to_bytes(u->latency, &u->sink_input->sample_spec), PA_SEEK… in pa__init()
/third_party/pulseaudio/src/pulse/
Dsample.h289 size_t pa_usec_to_bytes(pa_usec_t t, const pa_sample_spec *spec) PA_GCC_PURE;
Dsample.c86 size_t pa_usec_to_bytes(pa_usec_t t, const pa_sample_spec *spec) { in pa_usec_to_bytes() function
Dstream.c153 …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()
162 …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()
1006 attr->tlength = pa_usec_to_bytes(ms * PA_USEC_PER_MSEC, &ss); in patch_buffer_attr()
1029 …attr->tlength = (uint32_t) pa_usec_to_bytes(250*PA_USEC_PER_MSEC, &s->sample_spec); /* 250ms of bu… in patch_buffer_attr()
/third_party/pulseaudio/src/modules/alsa/
Dalsa-source.c294 u->min_sleep = pa_usec_to_bytes(TSCHED_MIN_SLEEP_USEC, &u->source->sample_spec); in fix_min_sleep_wakeup()
297 u->min_wakeup = pa_usec_to_bytes(TSCHED_MIN_WAKEUP_USEC, &u->source->sample_spec); in fix_min_sleep_wakeup()
394 … u->watermark_inc_step = pa_usec_to_bytes(TSCHED_WATERMARK_INC_STEP_USEC, &u->source->sample_spec); in reset_watermark()
395 … u->watermark_dec_step = pa_usec_to_bytes(TSCHED_WATERMARK_DEC_STEP_USEC, &u->source->sample_spec); in reset_watermark()
978 b = pa_usec_to_bytes(latency, &u->source->sample_spec); in update_sw_params()
1000 avail_min += pa_usec_to_bytes(sleep_usec, &u->source->sample_spec) / u->frame_size; in update_sw_params()
2012 …frag_size = (uint32_t) pa_usec_to_bytes(m->core->default_fragment_size_msec*PA_USEC_PER_MSEC, &ss); in pa_alsa_source_new()
2015 tsched_size = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_BUFFER_USEC, &ss); in pa_alsa_source_new()
2016 tsched_watermark = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_WATERMARK_USEC, &ss); in pa_alsa_source_new()
Dalsa-sink.c322 u->min_sleep = pa_usec_to_bytes(TSCHED_MIN_SLEEP_USEC, &u->sink->sample_spec); in fix_min_sleep_wakeup()
325 u->min_wakeup = pa_usec_to_bytes(TSCHED_MIN_WAKEUP_USEC, &u->sink->sample_spec); in fix_min_sleep_wakeup()
422 u->watermark_inc_step = pa_usec_to_bytes(TSCHED_WATERMARK_INC_STEP_USEC, &u->sink->sample_spec); in reset_watermark()
423 u->watermark_dec_step = pa_usec_to_bytes(TSCHED_WATERMARK_DEC_STEP_USEC, &u->sink->sample_spec); in reset_watermark()
1075 b = pa_usec_to_bytes(latency, &u->sink->sample_spec); in update_sw_params()
1098 avail_min += pa_usec_to_bytes(sleep_usec, &u->sink->sample_spec) / u->frame_size; in update_sw_params()
2307 …frag_size = (uint32_t) pa_usec_to_bytes(m->core->default_fragment_size_msec*PA_USEC_PER_MSEC, &ss); in pa_alsa_sink_new()
2310 tsched_size = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_BUFFER_USEC, &ss); in pa_alsa_sink_new()
2311 tsched_watermark = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_WATERMARK_USEC, &ss); in pa_alsa_sink_new()
2342 …rewind_safeguard = PA_MAX(DEFAULT_REWIND_SAFEGUARD_BYTES, pa_usec_to_bytes(DEFAULT_REWIND_SAFEGUAR… in pa_alsa_sink_new()
/third_party/pulseaudio/src/
Dmap-file377 pa_usec_to_bytes;
/third_party/pulseaudio/src/tests/
Dinterpol-test.c111 attr.tlength = latency > 0 ? (uint32_t) pa_usec_to_bytes(latency, &ss) : (uint32_t) -1; in context_state_callback()
Dresampler-test.c424 i.memblock = pa_memblock_new(pool, pa_usec_to_bytes(1*PA_USEC_PER_SEC, &a)); in main()
/third_party/pulseaudio/src/utils/
Dpacat.c473 …buffer_attr.fragsize = buffer_attr.tlength = pa_usec_to_bytes(latency_msec * PA_USEC_PER_MSEC, &sa… 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()
Dpadsp.c2134 *(int*) argp = pa_usec_to_bytes(usec, &i->sample_spec); in dsp_ioctl()
2344 size_t k = pa_usec_to_bytes(usec, &i->sample_spec); in dsp_ioctl()
/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-recv.c564 pa_usec_to_bytes(s->intended_latency - s->sink_latency, &s->sink_input->sample_spec), in session_new()
/third_party/pulseaudio/src/pulsecore/
Dprotocol-native.c410 …s->buffer_attr.fragsize = (uint32_t) pa_usec_to_bytes(DEFAULT_FRAGSIZE_MSEC*PA_USEC_PER_MSEC, &s->… in fix_record_buffer_attr_pre()
469 if (pa_usec_to_bytes(orig_fragsize_usec, &s->source_output->sample_spec) != in fix_record_buffer_attr_pre()
470 pa_usec_to_bytes(fragsize_usec, &s->source_output->sample_spec)) in fix_record_buffer_attr_pre()
472 …s->buffer_attr.fragsize = (uint32_t) pa_usec_to_bytes(fragsize_usec, &s->source_output->sample_spe… in fix_record_buffer_attr_pre()
919 if (pa_usec_to_bytes(orig_minreq_usec, &s->sink_input->sample_spec) != in fix_playback_buffer_attr()
920 pa_usec_to_bytes(minreq_usec, &s->sink_input->sample_spec)) in fix_playback_buffer_attr()
921 … s->buffer_attr.minreq = (uint32_t) pa_usec_to_bytes(minreq_usec, &s->sink_input->sample_spec); in fix_playback_buffer_attr()
/third_party/pulseaudio/src/modules/raop/
Draop-sink.c590 position = u->write_count - pa_usec_to_bytes(u->delay, &u->sink->sample_spec); in thread_func()
/third_party/pulseaudio/src/modules/echo-cancel/
Dmodule-echo-cancel.c676 diff = pa_usec_to_bytes(-diff_time, &u->sink_input->sample_spec); in apply_diff_time()
689 diff = pa_usec_to_bytes(diff_time, &u->source_output->sample_spec); in apply_diff_time()

12