/third_party/pulseaudio/src/modules/ |
D | module-solaris.c | 167 …pa_smoother_put(u->smoother, pa_rtclock_now(), pa_bytes_to_usec(played_bytes, &u->sink->sample_spe… in get_playback_buffered_bytes() 182 r = pa_bytes_to_usec(get_playback_buffered_bytes(u), ss); in sink_get_latency() 184 r += pa_bytes_to_usec(u->memchunk.length, ss); in sink_get_latency() 218 r = pa_bytes_to_usec(get_recorded_bytes(u), ss) - pa_bytes_to_usec(u->read_bytes, ss); in source_get_latency() 740 ysleep_interval = pa_bytes_to_usec(buffered_bytes / 2, &u->sink->sample_spec); in thread_func() 916 (unsigned)(pa_bytes_to_usec(2 * u->minimum_request, &ss) / 1000)); in pa__init() 921 (unsigned)(pa_bytes_to_usec(MAX_BUFFER_SIZE, &ss) / 1000)); in pa__init() 989 … pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(u->buffer_size, &u->source->sample_spec)); in pa__init() 1033 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec(u->buffer_size, &u->sink->sample_spec)); in pa__init()
|
D | module-pipe-sink.c | 130 *((int64_t*) data) = pa_bytes_to_usec(n, &u->sink->sample_spec); in sink_process_msg() 250 u->timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render_use_timing() 534 u->block_usec = pa_bytes_to_usec(u->buffer_size, &u->sink->sample_spec); in pa__init() 538 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec(u->buffer_size, &u->sink->sample_spec)); in pa__init()
|
D | module-loopback.c | 381 current_buffer_latency = pa_bytes_to_usec(buffer, &u->sink_input->sample_spec); in adjust_rates() 542 …pa_log_info("Dropping %" PRIu64 " usec of audio from queue", pa_bytes_to_usec(buffer_correction, &… in memblockq_adjust() 548 …pa_log_info("Adding %" PRIu64 " usec of silence to queue", pa_bytes_to_usec(buffer_correction, &u-… in memblockq_adjust() 597 … pa_bytes_to_usec(length, &u->source_output->source->sample_spec); in source_output_process_msg_cb() 872 … *r = pa_bytes_to_usec(pa_memblockq_get_length(u->memblockq), &u->sink_input->sample_spec); in sink_input_process_msg_cb() 913 …if (pa_bytes_to_usec(chunk->length, &u->sink_input->sample_spec) > u->output_thread_info.effective… in sink_input_process_msg_cb() 916 … time_delta -= (int64_t)pa_bytes_to_usec(chunk->length, &u->sink_input->sample_spec); in sink_input_process_msg_cb() 970 … pa_bytes_to_usec(length, &u->sink_input->sink->sample_spec); in sink_input_process_msg_cb()
|
D | module-pipe-source.c | 114 *((int64_t*) data) = pa_bytes_to_usec(n, &u->source->sample_spec); in source_process_msg() 298 …pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(pa_pipe_buf(u->fd), &u->source->sample_spe… in pa__init()
|
D | module-waveout.c | 342 return pa_bytes_to_usec(u->written_bytes - mmt.u.cb, &u->sink->sample_spec); in sink_get_latency() 348 … return pa_bytes_to_usec((u->fragments - free_frags) * u->fragment_size, &u->sink->sample_spec); in sink_get_latency() 362 r += pa_bytes_to_usec((free_frags + 1) * u->fragment_size, &u->source->sample_spec); in source_get_latency() 704 u->poll_timeout = pa_bytes_to_usec(u->fragments * u->fragment_size / 10, &ss); in pa__init()
|
D | module-null-sink.c | 203 u->timestamp -= pa_bytes_to_usec(rewind_nbytes, &u->sink->sample_spec); in process_rewind() 231 u->timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render()
|
D | module-tunnel.c | 513 yl = pa_bytes_to_usec((uint64_t) u->counter, &u->sink->sample_spec); in sink_process_msg() 538 y = pa_bytes_to_usec((uint64_t) u->counter, &u->sink->sample_spec); in sink_process_msg() 624 yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SOURCE(o)->sample_spec); in source_process_msg() 657 y = pa_bytes_to_usec((uint64_t) u->counter, &u->source->sample_spec); in source_process_msg() 850 delay += (int64_t) pa_bytes_to_usec((uint64_t) (write_index-read_index), ss); in stream_get_latency_callback() 852 delay -= (int64_t) pa_bytes_to_usec((uint64_t) (read_index-write_index), ss); in stream_get_latency_callback() 864 delay += (int64_t) pa_bytes_to_usec((uint64_t) u->counter_delta, ss); in stream_get_latency_callback() 866 delay -= (int64_t) pa_bytes_to_usec((uint64_t) u->counter_delta, ss); in stream_get_latency_callback()
|
D | module-combine-sink.c | 301 u->thread_info.timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render_null() 312 …pa_bytes_to_usec(u->thread_info.counter, &u->sink->sample_spec) - (u->thread_info.timestamp - now)… in process_render_null() 624 … *r = pa_bytes_to_usec(pa_memblockq_get_length(o->memblockq), &o->sink_input->sample_spec); in sink_input_process_msg() 894 c = pa_bytes_to_usec(u->thread_info.counter, &u->sink->sample_spec); in sink_process_msg() 921 y = pa_bytes_to_usec(u->thread_info.counter, &u->sink->sample_spec); in sink_process_msg()
|
D | module-esound-sink.c | 148 w = pa_bytes_to_usec((uint64_t) u->offset + u->memchunk.length, &u->sink->sample_spec); in sink_process_msg() 303 usec = pa_bytes_to_usec((uint64_t) n, &u->sink->sample_spec); in thread_func()
|
D | module-virtual-sink.c | 106 …pa_bytes_to_usec(pa_memblockq_get_length(u->sink_input->thread_info.render_memblockq), &u->sink_in… in sink_process_msg_cb() 279 … 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/ |
D | alsa-sink.c | 342 u->tsched_watermark_usec = pa_bytes_to_usec(u->tsched_watermark, &u->sink->sample_spec); in fix_tsched_watermark() 434 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark() 438 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark() 462 usec = pa_bytes_to_usec(u->hwbuf_size, &u->sink->sample_spec); in hw_sleep_time() 563 (double) pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) / PA_USEC_PER_MSEC, in check_left_to_play() 564 … (double) pa_bytes_to_usec(u->watermark_inc_threshold, &u->sink->sample_spec) / PA_USEC_PER_MSEC, in check_left_to_play() 565 … (double) pa_bytes_to_usec(u->watermark_dec_threshold, &u->sink->sample_spec) / PA_USEC_PER_MSEC); in check_left_to_play() 640 … pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) > process_usec+max_sleep_usec/2) { in mmap_write() 775 *sleep_usec = pa_bytes_to_usec(left_to_play, &u->sink->sample_spec); in mmap_write() 834 … pa_bytes_to_usec(left_to_play, &u->sink->sample_spec) > process_usec+max_sleep_usec/2) in unix_write() [all …]
|
D | alsa-source.c | 314 u->tsched_watermark_usec = pa_bytes_to_usec(u->tsched_watermark, &u->source->sample_spec); in fix_tsched_watermark() 406 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark() 410 pa_bytes_to_usec(u->hwbuf_size, ss)); in reset_watermark() 434 usec = pa_bytes_to_usec(u->hwbuf_size, &u->source->sample_spec); in hw_sleep_time() 534 …pa_log_debug("%0.2f ms left to record", (double) pa_bytes_to_usec(left_to_record, &u->source->samp… in check_left_to_record() 599 … pa_bytes_to_usec(left_to_record, &u->source->sample_spec) > process_usec+max_sleep_usec/2) { in mmap_read() 718 *sleep_usec = pa_bytes_to_usec(left_to_record, &u->source->sample_spec); in mmap_read() 769 … pa_bytes_to_usec(left_to_record, &u->source->sample_spec) > process_usec+max_sleep_usec/2) in unix_read() 859 *sleep_usec = pa_bytes_to_usec(left_to_record, &u->source->sample_spec); in unix_read() 909 now2 = pa_bytes_to_usec(position, &u->source->sample_spec); in update_smoother() [all …]
|
/third_party/pulseaudio/src/modules/oss/ |
D | module-oss.c | 382 return pa_bytes_to_usec(n, &u->sink->sample_spec); in mmap_sink_get_latency() 406 return pa_bytes_to_usec(n, &u->source->sample_spec); in mmap_source_get_latency() 424 r = pa_bytes_to_usec((size_t) arg, &u->sink->sample_spec); in io_sink_get_latency() 435 r = pa_bytes_to_usec((size_t) arg, &u->sink->sample_spec); in io_sink_get_latency() 446 r = pa_bytes_to_usec((size_t) info.bytes, &u->sink->sample_spec); in io_sink_get_latency() 450 r += pa_bytes_to_usec(u->memchunk.length, &u->sink->sample_spec); in io_sink_get_latency() 467 r = pa_bytes_to_usec((size_t) info.bytes, &u->source->sample_spec); in io_source_get_latency() 1362 …pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(u->in_hwbuf_size, &u->source->sample_spec)… in pa__init() 1432 … 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/raop/ |
D | raop-sink.c | 136 latency = pa_bytes_to_usec(u->write_count, &u->sink->sample_spec) - (int64_t) now; in sink_get_latency() 593 estimated = pa_bytes_to_usec(position, &u->sink->sample_spec); in thread_func() 598 intvl = u->start + pa_bytes_to_usec(u->write_count, &u->sink->sample_spec); in thread_func() 605 intvl = u->start + pa_bytes_to_usec(u->write_count, &u->sink->sample_spec); in thread_func() 889 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/ |
D | module-echo-cancel.c | 304 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->sourc… 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() 458 …pa_bytes_to_usec(pa_memblockq_get_length(u->sink_input->thread_info.render_memblockq), &u->sink_in… in sink_process_msg_cb() 549 pa_bytes_to_usec(u->source_blocksize, &s->sample_spec) * MAX_LATENCY_BLOCKS); in source_update_requested_latency_cb() [all …]
|
/third_party/pulseaudio/src/modules/jack/ |
D | module-jack-sink.c | 188 *((int64_t*) data) = pa_bytes_to_usec(n, &u->sink->sample_spec); in sink_process_msg() 191 *((int64_t*) data) = - (int64_t)pa_bytes_to_usec(n, &u->sink->sample_spec); in sink_process_msg() 461 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec(n, &u->sink->sample_spec)); in pa__init()
|
D | module-jack-source.c | 143 *((int64_t*) data) = pa_bytes_to_usec(n, &u->source->sample_spec); in source_process_msg() 402 pa_source_set_fixed_latency(u->source, pa_bytes_to_usec(n, &u->source->sample_spec)); in pa__init()
|
/third_party/pulseaudio/src/modules/rtp/ |
D | module-rtp-recv.c | 139 …*((pa_usec_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(s->memblockq), &s->sink_input->sam… in sink_input_process_msg() 282 …wi = pa_bytes_to_usec((uint64_t) pa_memblockq_get_write_index(s->memblockq), &s->sink_input->sampl… in rtpoll_work_cb() 283 …ri = pa_bytes_to_usec((uint64_t) pa_memblockq_get_read_index(s->memblockq), &s->sink_input->sample… in rtpoll_work_cb() 288 …render_delay = pa_bytes_to_usec(pa_memblockq_get_length(s->sink_input->thread_info.render_memblock… in rtpoll_work_cb()
|
D | module-rtp-send.c | 125 …*((pa_usec_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(u->memblockq), &u->source_output->… in source_output_process_msg() 451 …(unsigned long long) pa_source_output_set_requested_latency(o, pa_bytes_to_usec(mtu, &o->sample_sp… in pa__init()
|
/third_party/pulseaudio/src/modules/bluetooth/ |
D | module-bluez5-device.c | 404 …pa_smoother_put(u->read_smoother, tstamp, pa_bytes_to_usec(u->read_index, &u->decoder_sample_spec)… in sco_process_push() 627 …pa_smoother_put(u->read_smoother, tstamp, pa_bytes_to_usec(u->read_index, &u->decoder_sample_spec)… in a2dp_process_push() 756 … pa_bytes_to_usec(u->write_block_size, &u->encoder_sample_spec)); in handle_sink_block_size_change() 799 … pa_bytes_to_usec(u->read_block_size, &u->decoder_sample_spec)); in transport_config_mtu() 881 ri = pa_bytes_to_usec(u->read_index, &u->decoder_sample_spec); in source_process_msg() 1067 … wi = pa_bytes_to_usec(u->write_index + u->write_block_size, &u->encoder_sample_spec); in sink_process_msg() 1070 wi = pa_bytes_to_usec(u->write_index, &u->encoder_sample_spec); in sink_process_msg() 1481 audio_sent = pa_bytes_to_usec(u->write_index, &u->encoder_sample_spec); in thread_func() 1499 skip_usec = pa_bytes_to_usec(skip_bytes, &u->encoder_sample_spec); in thread_func() 1554 … next_write_at = pa_bytes_to_usec(u->write_index, &u->encoder_sample_spec); in thread_func()
|
/third_party/pulseaudio/src/pulse/ |
D | sample.h | 283 pa_usec_t pa_bytes_to_usec(uint64_t length, const pa_sample_spec *spec) PA_GCC_PURE;
|
D | sample.c | 79 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/ |
D | protocol-native.c | 414 …orig_fragsize_usec = fragsize_usec = pa_bytes_to_usec(s->buffer_attr.fragsize, &s->source_output->… in fix_record_buffer_attr_pre() 610 …((double) pa_bytes_to_usec(s->buffer_attr.fragsize, &source_output->sample_spec) + (double) s->con… in record_stream_new() 611 …(double) pa_bytes_to_usec(s->buffer_attr.fragsize, &source_output->sample_spec) / PA_USEC_PER_MSEC, in record_stream_new() 786 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.maxlength, &s->sink_input->sample_spec) / PA_… in fix_playback_buffer_attr() 787 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.tlength, &s->sink_input->sample_spec) / PA_US… in fix_playback_buffer_attr() 788 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.minreq, &s->sink_input->sample_spec) / PA_USE… in fix_playback_buffer_attr() 789 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.prebuf, &s->sink_input->sample_spec) / PA_USE… in fix_playback_buffer_attr() 826 …orig_tlength_usec = tlength_usec = pa_bytes_to_usec(s->buffer_attr.tlength, &s->sink_input->sample… in fix_playback_buffer_attr() 827 …orig_minreq_usec = minreq_usec = pa_bytes_to_usec(s->buffer_attr.minreq, &s->sink_input->sample_sp… in fix_playback_buffer_attr() 939 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr.maxlength, &s->sink_input->sample_spec) / PA_USEC… in fix_playback_buffer_attr() [all …]
|
/third_party/pulseaudio/src/ |
D | map-file | 7 pa_bytes_to_usec;
|
/third_party/pulseaudio/src/modules/dbus/ |
D | iface-sample.c | 255 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()
|