Home
last modified time | relevance | path

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

12

/third_party/pulseaudio/src/modules/
Dmodule-null-source.c132 …pa_source_set_max_rewind_within_thread(s, pa_usec_to_bytes(u->block_usec, &u->source->sample_spec)… in source_update_requested_latency_cb()
162 …if (timer_elapsed && (chunk.length = pa_usec_to_bytes(now - u->timestamp, &u->source->sample_spec)… in thread_func()
267 pa_usec_to_bytes(u->block_usec, &u->source->sample_spec); in pa__init()
Dmodule-null-sink.c123 nbytes = pa_usec_to_bytes(u->block_usec, &s->sample_spec); in sink_recalculate_max_request_and_rewind()
212 in_buffer = pa_usec_to_bytes(delay, &u->sink->sample_spec); in process_rewind()
246 request_size = pa_usec_to_bytes(now + u->block_usec - u->timestamp, &u->sink->sample_spec); in process_render()
414 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in pa__init()
Dmodule-tunnel.c641 bytes = - pa_usec_to_bytes(- offset, &u->sink->sample_spec); in sink_process_msg()
643 bytes = pa_usec_to_bytes(offset, &u->sink->sample_spec); in sink_process_msg()
790 bytes = - pa_usec_to_bytes(- offset, &u->source->sample_spec); in source_process_msg()
792 bytes = pa_usec_to_bytes(offset, &u->source->sample_spec); in source_process_msg()
1814 u->tlength = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * u->latency, &u->sink->sample_spec); in setup_complete_callback()
1815 … u->minreq = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * u->latency / 4, &u->sink->sample_spec); in setup_complete_callback()
1818 … u->fragsize = (uint32_t) pa_usec_to_bytes(PA_USEC_PER_MSEC * u->latency, &u->source->sample_spec); in setup_complete_callback()
Dmodule-esound-sink.c332 bytes = pa_usec_to_bytes(u->latency, &u->sink->sample_spec); in thread_func()
631 u->block_size = pa_usec_to_bytes(PA_USEC_PER_SEC/20, &ss); in pa__init()
Dmodule-virtual-source.c416 … u->skip = pa_usec_to_bytes(PA_CLIP_SUB(pa_source_get_latency_within_thread(o->source, false), in source_output_state_change_cb()
685 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in pa__init()
Dmodule-tunnel-source-new.c388 bufferattr.fragsize = pa_usec_to_bytes(requested_latency, &u->source->sample_spec); in on_source_created()
447 nbytes = pa_usec_to_bytes(block_usec, &s->sample_spec); in source_update_requested_latency_cb()
Dmodule-tunnel-sink-new.c404 bufferattr.tlength = pa_usec_to_bytes(requested_latency, &u->sink->sample_spec); in on_sink_created()
473 nbytes = pa_usec_to_bytes(block_usec, &s->sample_spec); in sink_update_requested_latency_cb()
Dmodule-combine-sink.c419 … u->thread_info.counter - pa_usec_to_bytes(u->thread_info.timestamp - now, &u->sink->sample_spec)); in process_render_null()
912 max_request = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in update_max_request()
1074 latency = pa_usec_to_bytes((pa_usec_t)offset, &u->sink->sample_spec); in sink_process_msg()
1640 nbytes = pa_usec_to_bytes(BLOCK_USEC, &u->sink->sample_spec); in pa__init()
Dmodule-solaris.c943 u->minimum_request = pa_usec_to_bytes(PA_USEC_PER_SEC / MAX_RENDER_HZ, &ss); in pa__init()
950 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-loopback.c723 …requested_memblockq_length = pa_usec_to_bytes(requested_buffer_latency, &u->sink_input->sample_spe… in memblockq_adjust()
1873 …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
Dmap-file378 pa_usec_to_bytes;
Dstream.c155 …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()
164 …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()
1020 attr->tlength = pa_usec_to_bytes(ms * PA_USEC_PER_MSEC, &ss); in patch_buffer_attr()
1043 …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.c310 u->min_sleep = pa_usec_to_bytes(TSCHED_MIN_SLEEP_USEC, &u->source->sample_spec); in fix_min_sleep_wakeup()
313 u->min_wakeup = pa_usec_to_bytes(TSCHED_MIN_WAKEUP_USEC, &u->source->sample_spec); in fix_min_sleep_wakeup()
410 … u->watermark_inc_step = pa_usec_to_bytes(TSCHED_WATERMARK_INC_STEP_USEC, &u->source->sample_spec); in reset_watermark()
411 … u->watermark_dec_step = pa_usec_to_bytes(TSCHED_WATERMARK_DEC_STEP_USEC, &u->source->sample_spec); in reset_watermark()
1019 b = pa_usec_to_bytes(latency, &u->source->sample_spec); in update_sw_params()
1041 avail_min += pa_usec_to_bytes(sleep_usec, &u->source->sample_spec) / u->frame_size; in update_sw_params()
2093 …frag_size = (uint32_t) pa_usec_to_bytes(m->core->default_fragment_size_msec*PA_USEC_PER_MSEC, &ss); in pa_alsa_source_new()
2096 tsched_size = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_BUFFER_USEC, &ss); in pa_alsa_source_new()
2097 tsched_watermark = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_WATERMARK_USEC, &ss); in pa_alsa_source_new()
Dalsa-sink.c338 u->min_sleep = pa_usec_to_bytes(TSCHED_MIN_SLEEP_USEC, &u->sink->sample_spec); in fix_min_sleep_wakeup()
341 u->min_wakeup = pa_usec_to_bytes(TSCHED_MIN_WAKEUP_USEC, &u->sink->sample_spec); in fix_min_sleep_wakeup()
438 u->watermark_inc_step = pa_usec_to_bytes(TSCHED_WATERMARK_INC_STEP_USEC, &u->sink->sample_spec); in reset_watermark()
439 u->watermark_dec_step = pa_usec_to_bytes(TSCHED_WATERMARK_DEC_STEP_USEC, &u->sink->sample_spec); in reset_watermark()
1113 b = pa_usec_to_bytes(latency, &u->sink->sample_spec); in update_sw_params()
1136 avail_min += pa_usec_to_bytes(sleep_usec, &u->sink->sample_spec) / u->frame_size; in update_sw_params()
2394 …frag_size = (uint32_t) pa_usec_to_bytes(m->core->default_fragment_size_msec*PA_USEC_PER_MSEC, &ss); in pa_alsa_sink_new()
2397 tsched_size = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_BUFFER_USEC, &ss); in pa_alsa_sink_new()
2398 tsched_watermark = (uint32_t) pa_usec_to_bytes(DEFAULT_TSCHED_WATERMARK_USEC, &ss); in pa_alsa_sink_new()
2429 …rewind_safeguard = PA_MAX(DEFAULT_REWIND_SAFEGUARD_BYTES, pa_usec_to_bytes(DEFAULT_REWIND_SAFEGUAR… in pa_alsa_sink_new()
/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()
/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-recv.c565 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.c413 …s->buffer_attr.fragsize = (uint32_t) pa_usec_to_bytes(DEFAULT_FRAGSIZE_MSEC*PA_USEC_PER_MSEC, &s->… in fix_record_buffer_attr_pre()
472 if (pa_usec_to_bytes(orig_fragsize_usec, &s->source_output->sample_spec) != in fix_record_buffer_attr_pre()
473 pa_usec_to_bytes(fragsize_usec, &s->source_output->sample_spec)) in fix_record_buffer_attr_pre()
475 …s->buffer_attr.fragsize = (uint32_t) pa_usec_to_bytes(fragsize_usec, &s->source_output->sample_spe… in fix_record_buffer_attr_pre()
922 if (pa_usec_to_bytes(orig_minreq_usec, &s->sink_input->sample_spec) != in fix_playback_buffer_attr()
923 pa_usec_to_bytes(minreq_usec, &s->sink_input->sample_spec)) in fix_playback_buffer_attr()
924 … 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.c620 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.c682 diff = pa_usec_to_bytes(-diff_time, &u->sink_input->sample_spec); in apply_diff_time()
695 diff = pa_usec_to_bytes(diff_time, &u->source_output->sample_spec); in apply_diff_time()
/third_party/pulseaudio/src/modules/bluetooth/
Dmodule-bluez5-device.c1507 …bytes_to_write += pa_usec_to_bytes(pa_bytes_to_usec(n_read, &u->decoder_sample_spec), &u->encoder_… in thread_func()
1575 … size_t bytes_to_send = pa_usec_to_bytes(time_passed - audio_sent, &u->encoder_sample_spec); in thread_func()

12