/third_party/pulseaudio/src/modules/bluetooth/ |
D | bt-codec-cvsd.c | 25 pa_sample_spec sample_spec; member 28 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init() argument 33 info->sample_spec.format = PA_SAMPLE_S16LE; in init() 34 info->sample_spec.channels = 1; in init() 35 info->sample_spec.rate = 8000; in init() 37 *sample_spec = info->sample_spec; in init() 54 if (!pa_frame_aligned(block_size, &info->sample_spec)) { in get_block_size() 56 block_size = pa_frame_align(block_size, &info->sample_spec); in get_block_size() 66 pa_assert_fp(pa_frame_aligned(input_size, &info->sample_spec)); in get_encoded_block_size() 99 if (!pa_frame_aligned(input_size, &info->sample_spec)) { in decode_buffer()
|
D | bt-codec-msbc.c | 35 pa_sample_spec sample_spec; member 38 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init() argument 59 info->sample_spec.format = PA_SAMPLE_S16LE; in init() 60 info->sample_spec.channels = 1; in init() 61 info->sample_spec.rate = 16000; in init() 63 pa_assert(pa_frame_aligned(info->codesize, &info->sample_spec)); in init() 65 *sample_spec = info->sample_spec; in init() 110 if (!pa_frame_aligned(block_size, &info->sample_spec)) { in get_read_block_size() 112 block_size = pa_frame_align(block_size, &info->sample_spec); in get_read_block_size() 299 pa_silence_memory(output_buffer, sbc_info->codesize, &sbc_info->sample_spec); in decode_buffer()
|
D | a2dp-codec-ldac-gst.c | 285 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init_common() argument 298 info->ss = sample_spec; in init_common() 304 if (!(bin = gst_init_ldac(info, sample_spec, for_encoding))) in init_common() 319 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init_hq() argument 320 …ommon(LDAC_EQMID_HQ, for_encoding, for_backchannel, config_buffer, config_size, sample_spec, core); in init_hq() 323 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init_sq() argument 324 …ommon(LDAC_EQMID_SQ, for_encoding, for_backchannel, config_buffer, config_size, sample_spec, core); in init_sq() 327 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init_mq() argument 328 …ommon(LDAC_EQMID_MQ, for_encoding, for_backchannel, config_buffer, config_size, sample_spec, core); in init_mq()
|
D | a2dp-codec-sbc.c | 157 …sample_spec_from_sbc_config(struct sbc_info *sbc_info, pa_sample_spec *sample_spec, const a2dp_sbc… in set_info_and_sample_spec_from_sbc_config() argument 161 sample_spec->rate = 16000U; in set_info_and_sample_spec_from_sbc_config() 165 sample_spec->rate = 32000U; in set_info_and_sample_spec_from_sbc_config() 169 sample_spec->rate = 44100U; in set_info_and_sample_spec_from_sbc_config() 173 sample_spec->rate = 48000U; in set_info_and_sample_spec_from_sbc_config() 182 sample_spec->channels = 1; in set_info_and_sample_spec_from_sbc_config() 186 sample_spec->channels = 2; in set_info_and_sample_spec_from_sbc_config() 190 sample_spec->channels = 2; in set_info_and_sample_spec_from_sbc_config() 194 sample_spec->channels = 2; in set_info_and_sample_spec_from_sbc_config() 263 pa_sample_spec sample_spec; in sbc_get_max_bitpool_below_rate() local [all …]
|
D | a2dp-codec-aptx-gst.c | 395 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init_common() argument 403 info->ss = sample_spec; in init_common() 416 if (!(bin = gst_init_aptx(info, sample_spec, for_encoding))) in init_common() 431 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init() argument 432 …return init_common(APTX, for_encoding, for_backchannel, config_buffer, config_size, sample_spec, c… in init() 435 …el, const uint8_t *config_buffer, uint8_t config_size, pa_sample_spec *sample_spec, pa_core *core)… in init_hd() argument 436 …init_common(APTX_HD, for_encoding, for_backchannel, config_buffer, config_size, sample_spec, core); in init_hd()
|
/third_party/pulseaudio/src/pulsecore/ |
D | source-output.c | 66 data->sample_spec = *spec; in pa_source_output_new_data_set_sample_spec() 261 …f = pa_format_info_from_sample_spec2(&data->sample_spec, data->channel_map_is_set ? &data->channel… in pa_source_output_new() 336 …rmat_info_to_sample_spec2(data->format, &data->sample_spec, &data->channel_map, &data->source->sam… in pa_source_output_new() 345 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_source_output_new() 351 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_source_output_new() 365 pa_cvolume_reset(&data->volume_factor, data->sample_spec.channels); in pa_source_output_new() 367 …pa_return_val_if_fail(pa_cvolume_compatible(&data->volume_factor, &data->sample_spec), -PA_ERR_INV… in pa_source_output_new() 370 pa_cvolume_reset(&data->volume_factor_source, data->source->sample_spec.channels); in pa_source_output_new() 372 …fail(pa_cvolume_compatible(&data->volume_factor_source, &data->source->sample_spec), -PA_ERR_INVAL… in pa_source_output_new() 378 !pa_sample_spec_equal(&data->sample_spec, &data->source->sample_spec)) { in pa_source_output_new() [all …]
|
D | sink-input.c | 185 data->sample_spec = *spec; in pa_sink_input_new_data_set_sample_spec() 386 …f = pa_format_info_from_sample_spec2(&data->sample_spec, data->channel_map_is_set ? &data->channel… in pa_sink_input_new() 455 …ormat_info_to_sample_spec2(data->format, &data->sample_spec, &data->channel_map, &data->sink->samp… in pa_sink_input_new() 468 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_sink_input_new() 474 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_sink_input_new() 491 !pa_sample_spec_equal(&data->sample_spec, &data->sink->sample_spec)) { in pa_sink_input_new() 496 … pa_sink_reconfigure(data->sink, &data->sample_spec, pa_sink_input_new_data_is_passthrough(data)); in pa_sink_input_new() 500 !pa_sample_spec_equal(&data->sample_spec, &data->sink->sample_spec)) { in pa_sink_input_new() 527 !pa_sample_spec_equal(&data->sample_spec, &data->sink->sample_spec) || in pa_sink_input_new() 534 &data->sample_spec, &data->channel_map, in pa_sink_input_new() [all …]
|
D | sink.c | 100 data->sample_spec = *spec; in pa_sink_new_data_set_sample_spec() 215 pa_return_null_if_fail(data->sample_spec_is_set && pa_sample_spec_valid(&data->sample_spec)); in pa_sink_new() 218 …pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA… in pa_sink_new() 221 pa_return_null_if_fail(data->channel_map.channels == data->sample_spec.channels); in pa_sink_new() 228 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_sink_new() 233 pa_return_null_if_fail(pa_cvolume_compatible(&data->volume, &data->sample_spec)); in pa_sink_new() 273 s->sample_spec = data->sample_spec; in pa_sink_new() 275 s->default_sample_rate = s->sample_spec.rate; in pa_sink_new() 292 pa_cvolume_reset(&s->soft_volume, s->sample_spec.channels); in pa_sink_new() 332 &s->sample_spec, in pa_sink_new() [all …]
|
D | core-scache.c | 134 pa_sample_spec_init(&e->sample_spec); in scache_add_item() 174 pa_sample_spec_init(&e->sample_spec); in pa_scache_add_item() 180 e->sample_spec = *ss; in pa_scache_add_item() 200 pa_sample_spec_snprint(st, sizeof(st), &e->sample_spec)); in pa_scache_add_item() 323 …if (pa_sound_file_load(c->mempool, e->filename, &e->sample_spec, &e->channel_map, &e->memchunk, me… in pa_scache_play_item() 332 pa_cvolume_reset(&e->volume, e->sample_spec.channels); in pa_scache_play_item() 344 pa_cvolume_set(&r, e->sample_spec.channels, volume); in pa_scache_play_item() 349 pa_cvolume_set(&r, e->sample_spec.channels, volume); in pa_scache_play_item() 359 &e->sample_spec, &e->channel_map, in pa_scache_play_item()
|
D | source.c | 90 data->sample_spec = *spec; in pa_source_new_data_set_sample_spec() 201 pa_return_null_if_fail(data->sample_spec_is_set && pa_sample_spec_valid(&data->sample_spec)); in pa_source_new() 204 …pa_return_null_if_fail(pa_channel_map_init_auto(&data->channel_map, data->sample_spec.channels, PA… in pa_source_new() 207 pa_return_null_if_fail(data->channel_map.channels == data->sample_spec.channels); in pa_source_new() 214 pa_cvolume_reset(&data->volume, data->sample_spec.channels); in pa_source_new() 219 pa_return_null_if_fail(pa_cvolume_compatible(&data->volume, &data->sample_spec)); in pa_source_new() 259 s->sample_spec = data->sample_spec; in pa_source_new() 261 s->default_sample_rate = s->sample_spec.rate; in pa_source_new() 279 pa_cvolume_reset(&s->soft_volume, s->sample_spec.channels); in pa_source_new() 319 &s->sample_spec, in pa_source_new() [all …]
|
D | protocol-simple.c | 340 … *r = pa_bytes_to_usec(pa_memblockq_get_length(c->input_memblockq), &c->sink_input->sample_spec); in sink_input_process_msg() 446 …urn pa_bytes_to_usec(pa_memblockq_get_length(c->output_memblockq), &c->source_output->sample_spec); in source_output_get_latency_cb() 538 pa_sink_input_new_data_set_sample_spec(&data, &o->sample_spec); in pa_simple_protocol_connect() 557 l = (size_t) ((double) pa_bytes_per_second(&o->sample_spec)*PLAYBACK_BUFFER_SECONDS); in pa_simple_protocol_connect() 564 &o->sample_spec, in pa_simple_protocol_connect() 594 pa_source_output_new_data_set_sample_spec(&data, &o->sample_spec); in pa_simple_protocol_connect() 610 l = (size_t) (pa_bytes_per_second(&o->sample_spec)*RECORD_BUFFER_SECONDS); in pa_simple_protocol_connect() 616 &o->sample_spec, in pa_simple_protocol_connect() 738 o->sample_spec = c->default_sample_spec; in pa_simple_options_parse() 739 …if (pa_modargs_get_sample_spec_and_channel_map(ma, &o->sample_spec, &o->channel_map, PA_CHANNEL_MA… in pa_simple_options_parse()
|
/third_party/pulseaudio/src/tests/ |
D | lo-test-util.c | 79 …= cal_state == CALIBRATION_ONE ? sinf(count++ * TONE_HZ * 2 * M_PI / ctx->sample_spec.rate) : 0.0f; in calibrate_write_cb() 121 pa_cvolume_set(&vol, ctx->sample_spec.channels, v * PA_VOLUME_NORM); in calibrate_read_cb() 174 pa_cvolume_set(&vol, ctx->sample_spec.channels, PA_VOLUME_NORM); in stream_state_callback() 177 pa_cvolume_set(&vol, ctx->sample_spec.channels, pa_sw_volume_from_linear(0.0)); in stream_state_callback() 215 buffer_attr.tlength = ctx->sample_spec.rate * ctx->fs * ctx->play_latency / 1000; in context_state_callback() 220 ctx->play_stream = pa_stream_new(c, "loopback: play", &ctx->sample_spec, NULL); in context_state_callback() 234 buffer_attr.fragsize = ctx->sample_spec.rate * ctx->fs * ctx->rec_latency / 1000; in context_state_callback() 236 ctx->rec_stream = pa_stream_new(c, "loopback: rec", &ctx->sample_spec, NULL); in context_state_callback() 262 pa_assert(ctx->sample_spec.format == PA_SAMPLE_FLOAT32); in pa_lo_test_init() 264 ctx->ss = pa_sample_size(&ctx->sample_spec); in pa_lo_test_init() [all …]
|
D | lo-latency-test.c | 144 test_ctx.sample_spec.format = PA_SAMPLE_FLOAT32, in START_TEST() 145 test_ctx.sample_spec.rate = SAMPLE_HZ, in START_TEST() 146 test_ctx.sample_spec.channels = CHANNELS, in START_TEST()
|
/third_party/pulseaudio/src/utils/ |
D | pacat.c | 93 static pa_sample_spec sample_spec = { variable 200 size_t k = pa_frame_size(&sample_spec); in stream_write_callback() 258 … pa_silence_memory((uint8_t *) buffer + buffer_index + buffer_length, length, &sample_spec); in stream_read_callback() 288 …((uint8_t *) silence_buffer + silence_buffer_length, length - silence_buffer_length, &sample_spec); in stream_read_callback() 293 size_t k = pa_frame_size(&sample_spec); in stream_read_callback() 452 … if (!(stream = pa_stream_new_with_proplist(c, NULL, &sample_spec, &channel_map, proplist))) { in context_state_callback() 473 …r.fragsize = buffer_attr.tlength = pa_usec_to_bytes(latency_msec * PA_USEC_PER_MSEC, &sample_spec); 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() 490 …ream, device, &buffer_attr, flags, volume_is_set ? pa_cvolume_set(&cv, sample_spec.channels, volum… in context_state_callback() 550 pa_assert(partialframe_len < pa_frame_size(&sample_spec)); in stdin_callback() [all …]
|
D | pactl.c | 96 static pa_sample_spec sample_spec; variable 250 pa_sample_spec_snprint(ss, sizeof(ss), &i->sample_spec); in get_server_info_callback() 586 char *sample_spec = pa_sample_spec_snprint(s, sizeof(s), &i->sample_spec); in get_sink_info_callback() local 594 pa_json_encoder_add_member_string(encoder, "sample_specification", sample_spec); in get_sink_info_callback() 606 sample_spec, in get_sink_info_callback() 642 pa_json_encoder_add_member_string(encoder, "sample_specification", sample_spec); in get_sink_info_callback() 685 sample_spec, in get_sink_info_callback() 772 char *sample_spec = pa_sample_spec_snprint(s, sizeof(s), &i->sample_spec); in get_source_info_callback() local 780 pa_json_encoder_add_member_string(encoder, "sample_specification", sample_spec); in get_source_info_callback() 792 sample_spec, in get_source_info_callback() [all …]
|
/third_party/pulseaudio/src/modules/rtp/ |
D | module-rtp-recv.c | 139 …c_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(s->memblockq), &s->sink_input->sample_spec); in sink_input_process_msg() 276 uint32_t current_rate = s->sink_input->sample_spec.rate; in rtpoll_work_cb() 282 …_bytes_to_usec((uint64_t) pa_memblockq_get_write_index(s->memblockq), &s->sink_input->sample_spec); in rtpoll_work_cb() 283 …a_bytes_to_usec((uint64_t) pa_memblockq_get_read_index(s->memblockq), &s->sink_input->sample_spec); in rtpoll_work_cb() 289 …blockq_get_length(s->sink_input->thread_info.render_memblockq), &s->sink_input->sink->sample_spec); in rtpoll_work_cb() 355 s->sink_input->sample_spec.rate = new_rate; in rtpoll_work_cb() 357 pa_assert(pa_sample_spec_valid(&s->sink_input->sample_spec)); in rtpoll_work_cb() 359 …pa_resampler_set_input_rate(s->sink_input->thread_info.resampler, s->sink_input->sample_spec.rate); in rtpoll_work_cb() 361 … pa_log_debug("Updated sampling rate to %lu Hz.", (unsigned long) s->sink_input->sample_spec.rate); in rtpoll_work_cb() 526 pa_sink_input_new_data_set_sample_spec(&data, &sdp_info->sample_spec); in session_new() [all …]
|
/third_party/pulseaudio/src/modules/jack/ |
D | module-jack-sink.c | 133 nbytes = (size_t) offset * pa_frame_size(&u->sink->sample_spec); in sink_process_msg() 149 ss = u->sink->sample_spec; in sink_process_msg() 163 …ink_set_max_request_within_thread(u->sink, (size_t) offset * pa_frame_size(&u->sink->sample_spec)); in sink_process_msg() 191 n = number_of_frames * pa_frame_size(&u->sink->sample_spec); in sink_process_msg() 192 *((int64_t*) data) = pa_bytes_to_usec(n, &u->sink->sample_spec); in sink_process_msg() 194 n = - number_of_frames * pa_frame_size(&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() 442 …k_set_max_request(u->sink, jack_get_buffer_size(u->client) * pa_frame_size(&u->sink->sample_spec)); in pa__init() 477 n = r.max * pa_frame_size(&u->sink->sample_spec); in pa__init() 478 pa_sink_set_fixed_latency(u->sink, pa_bytes_to_usec(n, &u->sink->sample_spec)); in pa__init()
|
/third_party/pulseaudio/src/modules/alsa/ |
D | alsa-sink.c | 336 max_use_2 = pa_frame_align(max_use/2, &u->sink->sample_spec); in fix_min_sleep_wakeup() 338 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() 358 u->tsched_watermark_usec = pa_bytes_to_usec(u->tsched_watermark, &u->sink->sample_spec); in fix_tsched_watermark() 436 u->tsched_watermark = pa_convert_size(tsched_watermark, ss, &u->sink->sample_spec); in reset_watermark() 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() 441 …_threshold = pa_usec_to_bytes_round_up(TSCHED_WATERMARK_INC_THRESHOLD_USEC, &u->sink->sample_spec); in reset_watermark() 442 …_threshold = pa_usec_to_bytes_round_up(TSCHED_WATERMARK_DEC_THRESHOLD_USEC, &u->sink->sample_spec); in reset_watermark() 478 usec = pa_bytes_to_usec(u->hwbuf_size, &u->sink->sample_spec); in hw_sleep_time() [all …]
|
D | alsa-source.c | 308 max_use_2 = pa_frame_align(max_use/2, &u->source->sample_spec); in fix_min_sleep_wakeup() 310 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() 330 u->tsched_watermark_usec = pa_bytes_to_usec(u->tsched_watermark, &u->source->sample_spec); in fix_tsched_watermark() 408 u->tsched_watermark = pa_convert_size(tsched_watermark, ss, &u->source->sample_spec); in reset_watermark() 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() 413 …hreshold = pa_usec_to_bytes_round_up(TSCHED_WATERMARK_INC_THRESHOLD_USEC, &u->source->sample_spec); in reset_watermark() 414 …hreshold = pa_usec_to_bytes_round_up(TSCHED_WATERMARK_DEC_THRESHOLD_USEC, &u->source->sample_spec); in reset_watermark() 450 usec = pa_bytes_to_usec(u->hwbuf_size, &u->source->sample_spec); in hw_sleep_time() [all …]
|
/third_party/pulseaudio/src/modules/ |
D | module-null-source.c | 132 …a_source_set_max_rewind_within_thread(s, pa_usec_to_bytes(u->block_usec, &u->source->sample_spec)); in source_update_requested_latency_cb() 149 …_block_size = pa_frame_align(pa_mempool_block_size_max(u->core->mempool), &u->source->sample_spec); in thread_func() 162 …er_elapsed && (chunk.length = pa_usec_to_bytes(now - u->timestamp, &u->source->sample_spec)) > 0) { in thread_func() 168 pa_silence_memchunk(&chunk, &u->source->sample_spec); in thread_func() 172 u->timestamp += pa_bytes_to_usec(chunk.length, &u->source->sample_spec); in thread_func() 267 pa_usec_to_bytes(u->block_usec, &u->source->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 …tes_to_usec(rdata.send_counter - o->latency_snapshot.receive_counter, &o->sink_input->sample_spec); in adjust_rates() 344 base_rate = u->sink->sample_spec.rate; in adjust_rates() 355 … new_rate = rate_controller(o, base_rate, o->sink_input->sample_spec.rate, latency_difference); in adjust_rates() 407 u->thread_info.timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render_null() 419 … u->thread_info.counter - pa_usec_to_bytes(u->thread_info.timestamp - now, &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() 912 max_request = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in update_max_request() [all …]
|
D | module-null-sink.c | 123 nbytes = pa_usec_to_bytes(u->block_usec, &s->sample_spec); in sink_recalculate_max_request_and_rewind() 173 s->sample_spec = *spec; in sink_reconfigure_cb() 212 in_buffer = pa_usec_to_bytes(delay, &u->sink->sample_spec); in process_rewind() 221 u->timestamp -= pa_bytes_to_usec(rewind_nbytes, &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() 253 u->timestamp += pa_bytes_to_usec(chunk.length, &u->sink->sample_spec); in process_render() 414 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in pa__init()
|
D | module-virtual-source.c | 178 …get_length(u->source_output->thread_info.delay_memblockq), &u->source_output->source->sample_spec); in source_process_msg_cb() 312 for(ch=0;ch<o->sample_spec.channels;ch++) in source_output_push_cb() 314 streams[0].volume.channels = o->sample_spec.channels; in source_output_push_cb() 317 for(ch=0;ch<o->sample_spec.channels;ch++) in source_output_push_cb() 319 streams[1].volume.channels = o->sample_spec.channels; in source_output_push_cb() 326 (const pa_sample_spec *)&o->sample_spec, /* same sample spec for input and output */ in source_output_push_cb() 418 &o->sample_spec); in source_output_state_change_cb() 514 ss = master->sample_spec; in pa__init() 685 nbytes = pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec); in pa__init()
|
D | module-tunnel.c | 285 pa_sample_spec sample_spec; member 606 yl = pa_bytes_to_usec((uint64_t) u->counter, &u->sink->sample_spec); in sink_process_msg() 641 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() 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() 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() 801 y = pa_bytes_to_usec((uint64_t) u->counter, &u->source->sample_spec); in source_process_msg() 991 ss = &u->sink->sample_spec; in stream_get_latency_callback() [all …]
|
/third_party/pulseaudio/src/modules/oss/ |
D | module-oss.c | 196 pa_silence_memory(u->out_mmap, u->out_hwbuf_size, &u->sink->sample_spec); in trigger() 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() 570 ss = *(ss_original = u->sink ? &u->sink->sample_spec : &u->source->sample_spec); in unsuspend() 830 …if (pa_oss_get_volume(u->mixer_fd, SOUND_MIXER_READ_VOLUME, &s->sample_spec, &s->real_volume) >= 0) in sink_get_volume() [all …]
|