/third_party/pulseaudio/src/modules/ |
D | module-solaris.c | 179 …pa_smoother_put(u->smoother, pa_rtclock_now(), pa_bytes_to_usec(played_bytes, &u->sink->sample_spe… 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(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() 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()
|
D | module-combine-sink.c | 297 … + 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-… 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); in sink_process_msg() 1083 y = pa_bytes_to_usec(u->thread_info.snapshot_counter, &u->sink->sample_spec); in sink_process_msg()
|
D | module-pipe-source.c | 114 *((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_spe… in pa__init()
|
D | module-loopback.c | 487 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, &… in memblockq_adjust() 735 …pa_log_info("Adding %" PRIu64 " usec of silence to queue", pa_bytes_to_usec(buffer_correction, &u-… 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… 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()
|
D | module-waveout.c | 344 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()
|
D | module-null-sink.c | 221 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()
|
D | module-tunnel.c | 606 yl = pa_bytes_to_usec((uint64_t) u->counter, &u->sink->sample_spec); in sink_process_msg() 655 y = pa_bytes_to_usec((uint64_t) u->counter, &u->sink->sample_spec); in sink_process_msg() 747 yl = pa_bytes_to_usec((uint64_t) u->counter, &PA_SOURCE(o)->sample_spec); in source_process_msg() 801 y = pa_bytes_to_usec((uint64_t) u->counter, &u->source->sample_spec); in source_process_msg() 999 delay += (int64_t) pa_bytes_to_usec((uint64_t) (write_index-read_index), ss); in stream_get_latency_callback() 1001 delay -= (int64_t) pa_bytes_to_usec((uint64_t) (read_index-write_index), ss); in stream_get_latency_callback() 1016 delay += (int64_t) pa_bytes_to_usec(send_counter - u->receive_snapshot, ss); in stream_get_latency_callback()
|
D | module-esound-sink.c | 162 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()
|
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() 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/ |
D | alsa-sink.c | 358 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_play, &u->sink->sample_spec) > process_usec+max_sleep_usec/2) in unix_write() [all …]
|
D | alsa-source.c | 330 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->samp… 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(position, &u->source->sample_spec); in update_smoother() [all …]
|
/third_party/pulseaudio/src/modules/oss/ |
D | module-oss.c | 384 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/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() 461 …pa_bytes_to_usec(pa_memblockq_get_length(u->sink_input->thread_info.render_memblockq), &u->sink_in… in sink_process_msg_cb() 555 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/raop/ |
D | raop-sink.c | 150 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/jack/ |
D | module-jack-sink.c | 192 *((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()
|
D | module-jack-source.c | 147 *((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/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() 289 …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 | 127 …*((pa_usec_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(u->memblockq), &u->source_output->… in source_output_process_msg() 464 …(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 | 546 …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_… 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(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
|
D | map-file | 7 pa_bytes_to_usec;
|
/third_party/pulseaudio/src/pulsecore/ |
D | protocol-native.c | 417 …orig_fragsize_usec = fragsize_usec = pa_bytes_to_usec(s->buffer_attr.fragsize, &s->source_output->… in fix_record_buffer_attr_pre() 613 …((double) pa_bytes_to_usec(s->buffer_attr.fragsize, &source_output->sample_spec) + (double) s->con… in record_stream_new() 614 …(double) pa_bytes_to_usec(s->buffer_attr.fragsize, &source_output->sample_spec) / PA_USEC_PER_MSEC, in record_stream_new() 789 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.maxlength, &s->sink_input->sample_spec) / PA_… in fix_playback_buffer_attr() 790 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.tlength, &s->sink_input->sample_spec) / PA_US… in fix_playback_buffer_attr() 791 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.minreq, &s->sink_input->sample_spec) / PA_USE… in fix_playback_buffer_attr() 792 …(unsigned long) (pa_bytes_to_usec(s->buffer_attr_req.prebuf, &s->sink_input->sample_spec) / PA_USE… in fix_playback_buffer_attr() 829 …orig_tlength_usec = tlength_usec = pa_bytes_to_usec(s->buffer_attr.tlength, &s->sink_input->sample… in fix_playback_buffer_attr() 830 …orig_minreq_usec = minreq_usec = pa_bytes_to_usec(s->buffer_attr.minreq, &s->sink_input->sample_sp… in fix_playback_buffer_attr() 942 …(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/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()
|