Home
last modified time | relevance | path

Searched refs:buffer_attr (Results 1 – 8 of 8) sorted by relevance

/third_party/pulseaudio/src/tests/
Dlo-test-util.c209 pa_buffer_attr buffer_attr; in context_state_callback() local
214 buffer_attr.maxlength = -1; in context_state_callback()
215 buffer_attr.tlength = ctx->sample_spec.rate * ctx->fs * ctx->play_latency / 1000; in context_state_callback()
216buffer_attr.prebuf = 0; /* Setting prebuf to 0 guarantees us the stream will run synchronously, no… in context_state_callback()
217 buffer_attr.minreq = -1; in context_state_callback()
218 buffer_attr.fragsize = -1; in context_state_callback()
226 pa_stream_connect_playback(ctx->play_stream, getenv("TEST_SINK"), &buffer_attr, in context_state_callback()
230 buffer_attr.maxlength = -1; in context_state_callback()
231 buffer_attr.tlength = (uint32_t) -1; in context_state_callback()
232 buffer_attr.prebuf = 0; in context_state_callback()
[all …]
Dextended-test.c48 static const pa_buffer_attr buffer_attr = { variable
139 …pa_stream_connect_playback(streams[i], NULL, &buffer_attr, PA_STREAM_START_CORKED, NULL, i == 0 ? … in context_state_callback()
Dconnect-stress.c115 static const pa_buffer_attr buffer_attr = { variable
179 pa_stream_connect_playback(streams[i], NULL, &buffer_attr, 0, NULL, NULL); in context_state_callback()
Dsync-playback.c54 static const pa_buffer_attr buffer_attr = { variable
138 …pa_stream_connect_playback(streams[i], NULL, &buffer_attr, PA_STREAM_START_CORKED, NULL, i == 0 ? … in context_state_callback()
/third_party/pulseaudio/src/pulsecore/
Dprotocol-native.c93 pa_buffer_attr buffer_attr; member
141 pa_buffer_attr buffer_attr; member
402 s->buffer_attr = s->buffer_attr_req; in fix_record_buffer_attr_pre()
404 … if (s->buffer_attr.maxlength == (uint32_t) -1 || s->buffer_attr.maxlength > MAX_MEMBLOCKQ_LENGTH) in fix_record_buffer_attr_pre()
405 s->buffer_attr.maxlength = MAX_MEMBLOCKQ_LENGTH; in fix_record_buffer_attr_pre()
406 if (s->buffer_attr.maxlength <= 0) in fix_record_buffer_attr_pre()
407 s->buffer_attr.maxlength = (uint32_t) frame_size; in fix_record_buffer_attr_pre()
409 if (s->buffer_attr.fragsize == (uint32_t) -1) in fix_record_buffer_attr_pre()
410 …s->buffer_attr.fragsize = (uint32_t) pa_usec_to_bytes(DEFAULT_FRAGSIZE_MSEC*PA_USEC_PER_MSEC, &s->… in fix_record_buffer_attr_pre()
411 if (s->buffer_attr.fragsize <= 0) in fix_record_buffer_attr_pre()
[all …]
/third_party/pulseaudio/src/utils/
Dpacat.c444 pa_buffer_attr buffer_attr; in context_state_callback() local
468 pa_zero(buffer_attr); in context_state_callback()
469 buffer_attr.maxlength = (uint32_t) -1; in context_state_callback()
470 buffer_attr.prebuf = (uint32_t) -1; in context_state_callback()
473buffer_attr.fragsize = buffer_attr.tlength = pa_usec_to_bytes(latency_msec * PA_USEC_PER_MSEC, &sa… in context_state_callback()
476 buffer_attr.fragsize = buffer_attr.tlength = (uint32_t) latency; in context_state_callback()
479 buffer_attr.fragsize = buffer_attr.tlength = (uint32_t) -1; in context_state_callback()
482buffer_attr.minreq = pa_usec_to_bytes(process_time_msec * PA_USEC_PER_MSEC, &sample_spec); in context_state_callback()
484 buffer_attr.minreq = (uint32_t) process_time; in context_state_callback()
486 buffer_attr.minreq = (uint32_t) -1; in context_state_callback()
[all …]
/third_party/pulseaudio/src/pulse/
Dstream.c145 memset(&s->buffer_attr, 0, sizeof(s->buffer_attr)); in pa_stream_new_with_proplist_internal()
151 s->buffer_attr.maxlength = (uint32_t) -1; in pa_stream_new_with_proplist_internal()
153 …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()
162 …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()
164 s->buffer_attr.minreq = (uint32_t) -1; in pa_stream_new_with_proplist_internal()
165 s->buffer_attr.prebuf = (uint32_t) -1; in pa_stream_new_with_proplist_internal()
166 s->buffer_attr.fragsize = (uint32_t) -1; in pa_stream_new_with_proplist_internal()
467 else if (force_start || s->buffer_attr.prebuf == 0) { in check_smoother_status()
568 s->buffer_attr.maxlength = maxlength; in pa_command_stream_moved()
569 s->buffer_attr.fragsize = fragsize; in pa_command_stream_moved()
[all …]
Dinternal.h178 pa_buffer_attr buffer_attr; member