Home
last modified time | relevance | path

Searched refs:pa_bytes_to_usec (Results 1 - 25 of 42) sorted by relevance

12

/third_party/pulseaudio/src/modules/
H A Dmodule-solaris.c179 pa_smoother_put(u->smoother, pa_rtclock_now(), pa_bytes_to_usec(played_bytes, &u->sink->sample_spec)); in get_playback_buffered_bytes()
195 r = pa_bytes_to_usec(get_playback_buffered_bytes(u), ss); in sink_get_latency()
197 r += pa_bytes_to_usec(u->memchunk.length, ss); in sink_get_latency()
231 r = pa_bytes_to_usec(get_recorded_bytes(u), ss) - pa_bytes_to_usec(u->read_bytes, ss); in source_get_latency()
767 ysleep_interval = pa_bytes_to_usec(buffered_bytes / 2, &u->sink->sample_spec); in thread_func()
953 (unsigned)(pa_bytes_to_usec(2 * u->minimum_request, &ss) / 1000)); in pa__init()
958 (unsigned)(pa_bytes_to_usec(MAX_BUFFER_SIZE, &ss) / 1000)); in pa__init()
1026 pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(u->buffer_size, &u->source->sample_spec)); in pa__init()
1070 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec( in pa__init()
[all...]
H A Dmodule-pipe-sink.c130 *((int64_t*) data) = pa_bytes_to_usec(n, &u->sink->sample_spec); in sink_process_msg()
249 u->timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render_use_timing()
531 u->block_usec = pa_bytes_to_usec(u->buffer_size, &u->sink->sample_spec); in pa__init()
535 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec(u->buffer_size, &u->sink->sample_spec)); in pa__init()
H A Dmodule-pipe-source.c114 *((int64_t*) data) = pa_bytes_to_usec(n, &u->source->sample_spec); in source_process_msg()
296 pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(pa_pipe_buf(u->fd), &u->source->sample_spec)); in pa__init()
H A Dmodule-waveout.c344 return pa_bytes_to_usec(u->written_bytes - mmt.u.cb, &u->sink->sample_spec); in sink_get_latency()
350 return pa_bytes_to_usec((u->fragments - free_frags) * u->fragment_size, &u->sink->sample_spec); in sink_get_latency()
364 r += pa_bytes_to_usec((free_frags + 1) * u->fragment_size, &u->source->sample_spec); in source_get_latency()
771 u->poll_timeout = pa_bytes_to_usec(u->fragments * u->fragment_size / 10, &ss); in pa__init()
H A Dmodule-loopback.c487 current_buffer_latency = pa_bytes_to_usec(buffer, &u->sink_input->sample_spec); in adjust_rates()
729 pa_log_info("Dropping %" PRIu64 " usec of audio from queue", pa_bytes_to_usec(buffer_correction, &u->sink_input->sample_spec)); in memblockq_adjust()
735 pa_log_info("Adding %" PRIu64 " usec of silence to queue", pa_bytes_to_usec(buffer_correction, &u->sink_input->sample_spec)); in memblockq_adjust()
785 pa_bytes_to_usec(length, &u->source_output->source->sample_spec); in source_output_process_msg_cb()
1071 *r = pa_bytes_to_usec(pa_memblockq_get_length(u->memblockq), &u->sink_input->sample_spec); in sink_input_process_msg_cb()
1113 if (pa_bytes_to_usec(chunk->length, &u->sink_input->sample_spec) > u->output_thread_info.effective_source_latency) in sink_input_process_msg_cb()
1116 time_delta -= (int64_t)pa_bytes_to_usec(chunk->length, &u->sink_input->sample_spec); in sink_input_process_msg_cb()
1175 pa_bytes_to_usec(length, &u->sink_input->sink->sample_spec); in sink_input_process_msg_cb()
H A Dmodule-combine-sink.c297 + pa_bytes_to_usec(o->latency_snapshot.output_memblockq_size, &o->sink_input->sample_spec) in adjust_rates()
302 snapshot_latency += pa_bytes_to_usec(rdata.send_counter - o->latency_snapshot.receive_counter, &o->sink_input->sample_spec); in adjust_rates()
407 u->thread_info.timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render_null()
422 pa_bytes_to_usec(u->thread_info.counter, &u->sink->sample_spec) - (u->thread_info.timestamp - now)); in process_render_null()
739 *r = pa_bytes_to_usec(pa_memblockq_get_length(o->memblockq), &o->sink_input->sample_spec); in sink_input_process_msg()
773 pa_bytes_to_usec(length, &o->sink->sample_spec); in sink_input_process_msg()
1046 c = pa_bytes_to_usec(u->thread_info.counter, &u->sink->sample_spec);
1083 y = pa_bytes_to_usec(u->thread_info.snapshot_counter, &u->sink->sample_spec);
H A Dmodule-null-sink.c221 u->timestamp -= pa_bytes_to_usec(rewind_nbytes, &u->sink->sample_spec); in process_rewind()
253 u->timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render()
H A Dmodule-tunnel.c607 yl = pa_bytes_to_usec((uint64_t) u->counter, &u->sink->sample_spec); in sink_process_msg()
656 y = pa_bytes_to_usec((uint64_t) u->counter, &u->sink->sample_spec); in sink_process_msg()
748 yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SOURCE(o)->sample_spec); in source_process_msg()
802 y = pa_bytes_to_usec((uint64_t) u->counter, &u->source->sample_spec); in source_process_msg()
1000 delay += (int64_t) pa_bytes_to_usec((uint64_t) (write_index-read_index), ss); in stream_get_latency_callback()
1002 delay -= (int64_t) pa_bytes_to_usec((uint64_t) (read_index-write_index), ss); in stream_get_latency_callback()
1017 delay += (int64_t) pa_bytes_to_usec(send_counter - u->receive_snapshot, ss); in stream_get_latency_callback()
H A Dmodule-esound-sink.c162 w = pa_bytes_to_usec((uint64_t) u->offset + u->memchunk.length, &u->sink->sample_spec); in sink_process_msg()
341 usec = pa_bytes_to_usec((uint64_t) n, &u->sink->sample_spec); in thread_func()
H A Dmodule-virtual-sink.c106 pa_bytes_to_usec(pa_memblockq_get_length(u->sink_input->thread_info.render_memblockq), &u->sink_input->sink->sample_spec); in sink_process_msg_cb()
282 pa_bytes_to_usec(pa_memblockq_get_length(i->thread_info.render_memblockq), &i->sink->sample_spec); in sink_input_pop_cb()
/third_party/pulseaudio/src/modules/alsa/
H A Dalsa-sink.c358 u->tsched_watermark_usec = pa_bytes_to_usec(u->tsched_watermark, &u->sink->sample_spec); in fix_tsched_watermark()
450 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark()
454 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark()
478 usec = pa_bytes_to_usec(u->hwbuf_size, &u->sink->sample_spec); in hw_sleep_time()
583 (double) pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) / PA_USEC_PER_MSEC, in check_left_to_play()
584 (double) pa_bytes_to_usec(u->watermark_inc_threshold, &u->sink->sample_spec) / PA_USEC_PER_MSEC, in check_left_to_play()
585 (double) pa_bytes_to_usec(u->watermark_dec_threshold, &u->sink->sample_spec) / PA_USEC_PER_MSEC); in check_left_to_play()
660 pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) > process_usec+max_sleep_usec/2) { in mmap_write()
795 *sleep_usec = pa_bytes_to_usec(left_to_play, &u->sink->sample_spec); in mmap_write()
854 pa_bytes_to_usec(left_to_pla in unix_write()
[all...]
H A Dalsa-source.c330 u->tsched_watermark_usec = pa_bytes_to_usec(u->tsched_watermark, &u->source->sample_spec); in fix_tsched_watermark()
422 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark()
426 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark()
450 usec = pa_bytes_to_usec(u->hwbuf_size, &u->source->sample_spec); in hw_sleep_time()
559 pa_log_debug("%0.2f ms left to record", (double) pa_bytes_to_usec(left_to_record, &u->source->sample_spec) / PA_USEC_PER_MSEC); in check_left_to_record()
624 pa_bytes_to_usec(left_to_record, &u->source->sample_spec) > process_usec+max_sleep_usec/2) { in mmap_read()
743 *sleep_usec = pa_bytes_to_usec(left_to_record, &u->source->sample_spec); in mmap_read()
794 pa_bytes_to_usec(left_to_record, &u->source->sample_spec) > process_usec+max_sleep_usec/2) in unix_read()
884 *sleep_usec = pa_bytes_to_usec(left_to_record, &u->source->sample_spec); in unix_read()
941 now2 = pa_bytes_to_usec(positio in update_smoother()
[all...]
/third_party/pulseaudio/src/modules/raop/
H A Draop-sink.c150 latency = pa_bytes_to_usec(u->write_count, &u->sink->sample_spec) - (int64_t) now; in sink_get_latency()
626 estimated = pa_bytes_to_usec(position, &u->sink->sample_spec); in thread_func()
632 intvl = u->start + pa_bytes_to_usec(u->write_count, &u->sink->sample_spec); in thread_func()
639 intvl = u->start + pa_bytes_to_usec(u->write_count, &u->sink->sample_spec); in thread_func()
926 u->block_usec = pa_bytes_to_usec(u->block_size, &u->sink->sample_spec); in pa_raop_sink_new()
/third_party/pulseaudio/src/modules/echo-cancel/
H A Dmodule-echo-cancel.c304 plen = pa_bytes_to_usec(snapshot->plen, &u->sink_input->sample_spec); in calc_diff()
305 rlen = pa_bytes_to_usec(snapshot->rlen, &u->source_output->sample_spec); in calc_diff()
311 source_delay = pa_bytes_to_usec(snapshot->source_delay, &u->source_output->sample_spec); in calc_diff()
312 sink_delay = pa_bytes_to_usec(snapshot->sink_delay, &u->sink_input->sample_spec); in calc_diff()
316 send_counter = pa_bytes_to_usec(snapshot->send_counter, &u->sink->sample_spec); in calc_diff()
317 recv_counter = pa_bytes_to_usec(snapshot->recv_counter, &u->sink->sample_spec); in calc_diff()
421 pa_bytes_to_usec(pa_memblockq_get_length(u->source_output->thread_info.delay_memblockq), &u->source_output->source->sample_spec) + in source_process_msg_cb()
423 pa_bytes_to_usec(u->source_output_blocksize, &u->source_output->source->sample_spec); in source_process_msg_cb()
461 pa_bytes_to_usec(pa_memblockq_get_length(u->sink_input->thread_info.render_memblockq), &u->sink_input->sink->sample_spec); in sink_process_msg_cb()
555 pa_bytes_to_usec( in source_update_requested_latency_cb()
[all...]
/third_party/pulseaudio/src/modules/jack/
H A Dmodule-jack-sink.c192 *((int64_t*) data) = pa_bytes_to_usec(n, &u->sink->sample_spec); in sink_process_msg()
195 *((int64_t*) data) = - (int64_t)pa_bytes_to_usec(n, &u->sink->sample_spec); in sink_process_msg()
478 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec(n, &u->sink->sample_spec)); in pa__init()
H A Dmodule-jack-source.c147 *((int64_t*) data) = pa_bytes_to_usec(n, &u->source->sample_spec); in source_process_msg()
419 pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(n, &u->source->sample_spec)); in pa__init()
/third_party/pulseaudio/src/modules/oss/
H A Dmodule-oss.c384 return pa_bytes_to_usec(n, &u->sink->sample_spec); in mmap_sink_get_latency()
408 return pa_bytes_to_usec(n, &u->source->sample_spec); in mmap_source_get_latency()
426 r = pa_bytes_to_usec((size_t) arg, &u->sink->sample_spec); in io_sink_get_latency()
437 r = pa_bytes_to_usec((size_t) arg, &u->sink->sample_spec); in io_sink_get_latency()
448 r = pa_bytes_to_usec((size_t) info.bytes, &u->sink->sample_spec); in io_sink_get_latency()
452 r += pa_bytes_to_usec(u->memchunk.length, &u->sink->sample_spec); in io_sink_get_latency()
469 r = pa_bytes_to_usec((size_t) info.bytes, &u->source->sample_spec); in io_source_get_latency()
1373 pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(u->in_hwbuf_size, &u->source->sample_spec)); in pa__init()
1443 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec(u->out_hwbuf_size, &u->sink->sample_spec)); in pa__init()
/third_party/pulseaudio/src/modules/rtp/
H A Dmodule-rtp-recv.c139 *((pa_usec_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(s->memblockq), &s->sink_input->sample_spec); in sink_input_process_msg()
282 wi = pa_bytes_to_usec((uint64_t) pa_memblockq_get_write_index(s->memblockq), &s->sink_input->sample_spec); in rtpoll_work_cb()
283 ri = pa_bytes_to_usec((uint64_t) pa_memblockq_get_read_index(s->memblockq), &s->sink_input->sample_spec); in rtpoll_work_cb()
289 render_delay = pa_bytes_to_usec(pa_memblockq_get_length(s->sink_input->thread_info.render_memblockq), &s->sink_input->sink->sample_spec); in rtpoll_work_cb()
H A Dmodule-rtp-send.c127 *((pa_usec_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(u->memblockq), &u->source_output->sample_spec); in source_output_process_msg()
464 (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.c546 pa_smoother_put(u->read_smoother, tstamp, pa_bytes_to_usec(u->read_index, &u->decoder_sample_spec)); in bt_process_push()
679 pa_bytes_to_usec(u->write_block_size, &u->encoder_sample_spec)); in handle_sink_block_size_change()
720 pa_bytes_to_usec(u->read_block_size, &u->decoder_sample_spec)); in transport_config_mtu()
848 ri = pa_bytes_to_usec(u->read_index, &u->decoder_sample_spec); in source_process_msg()
1088 wi = pa_bytes_to_usec(u->write_index + u->write_block_size, &u->encoder_sample_spec); in sink_process_msg()
1093 wi = pa_bytes_to_usec(u->write_index, &u->encoder_sample_spec); in sink_process_msg()
1507 bytes_to_write += pa_usec_to_bytes(pa_bytes_to_usec(n_read, &u->decoder_sample_spec), &u->encoder_sample_spec); in thread_func()
1570 audio_sent = pa_bytes_to_usec(u->write_index, &u->encoder_sample_spec); in thread_func()
1588 skip_usec = pa_bytes_to_usec(skip_bytes, &u->encoder_sample_spec); in thread_func()
1653 next_write_at = pa_bytes_to_usec( in thread_func()
[all...]
/third_party/pulseaudio/src/pulse/
H A Dsample.h85 * \li pa_bytes_to_usec() - Calculate the time it would take to play a buffer
283 pa_usec_t pa_bytes_to_usec(uint64_t length, const pa_sample_spec *spec) PA_GCC_PURE;
H A Dsample.c79 pa_usec_t pa_bytes_to_usec(uint64_t length, const pa_sample_spec *spec) { in pa_bytes_to_usec() function
/third_party/pulseaudio/src/pulsecore/
H A Dprotocol-native.c254 orig_fragsize_usec = fragsize_usec = pa_bytes_to_usec(s->buffer_attr.fragsize, &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()
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()
678 orig_tlength_usec = tlength_usec = pa_bytes_to_usec(s->buffer_attr.tlength, &s->sink_input->sample_spec); in fix_playback_buffer_attr()
679 orig_minreq_usec = minreq_usec = pa_bytes_to_usec(s->buffer_attr.minreq, &s->sink_input->sample_spec); in fix_playback_buffer_attr()
791 (unsigned long) (pa_bytes_to_usec( in fix_playback_buffer_attr()
[all...]
H A Dprotocol-simple.c340 *r = pa_bytes_to_usec(pa_memblockq_get_length(c->input_memblockq), &c->sink_input->sample_spec); in sink_input_process_msg()
446 return pa_bytes_to_usec(pa_memblockq_get_length(c->output_memblockq), &c->source_output->sample_spec); in source_output_get_latency_cb()
/third_party/pulseaudio/src/modules/dbus/
H A Diface-sample.c255 duration = pa_bytes_to_usec(s->sample->memchunk.length, &s->sample->sample_spec); in handle_get_duration()
313 duration = pa_bytes_to_usec(s->sample->memchunk.length, &s->sample->sample_spec); in handle_get_all()

Completed in 39 milliseconds

12