Home
last modified time | relevance | path

Searched refs:memblockq (Results 1 – 20 of 20) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
Dplay-memblockq.c38 pa_memblockq *memblockq; member
65 if (u->memblockq) in memblockq_stream_free()
66 pa_memblockq_free(u->memblockq); in memblockq_stream_free()
117 if (!u->memblockq) in sink_input_pop_cb()
120 if (pa_memblockq_peek(u->memblockq, chunk) < 0) { in sink_input_pop_cb()
124 pa_memblockq_free(u->memblockq); in sink_input_pop_cb()
125 u->memblockq = NULL; in sink_input_pop_cb()
138 pa_memblockq_drop(u->memblockq, chunk->length); in sink_input_pop_cb()
139 pa_assert_se(pa_memblockq_peek(u->memblockq, chunk) >= 0); in sink_input_pop_cb()
143 pa_memblockq_drop(u->memblockq, chunk->length); in sink_input_pop_cb()
[all …]
Dsound-file-stream.c57 pa_memblockq *memblockq; member
87 if (u->memblockq) in file_stream_free()
88 pa_memblockq_free(u->memblockq); in file_stream_free()
145 if (!u->memblockq) in sink_input_pop_cb()
154 if (pa_memblockq_peek(u->memblockq, chunk) >= 0) { in sink_input_pop_cb()
156 pa_memblockq_drop(u->memblockq, chunk->length); in sink_input_pop_cb()
188 pa_memblockq_push(u->memblockq, &tchunk); in sink_input_pop_cb()
193 pa_memblockq_free(u->memblockq); in sink_input_pop_cb()
194 u->memblockq = NULL; in sink_input_pop_cb()
209 if (!u->memblockq) in sink_input_process_rewind_cb()
[all …]
Dmemblockq.h159 void pa_memblockq_set_maxlength(pa_memblockq *memblockq, size_t maxlength); /* might modify tlength…
160 void pa_memblockq_set_tlength(pa_memblockq *memblockq, size_t tlength); /* might modify minreq, too…
161 void pa_memblockq_set_minreq(pa_memblockq *memblockq, size_t minreq); /* might modify prebuf, too */
162 void pa_memblockq_set_prebuf(pa_memblockq *memblockq, size_t prebuf);
163 void pa_memblockq_set_maxrewind(pa_memblockq *memblockq, size_t maxrewind); /* Set the maximum hist…
164 void pa_memblockq_set_silence(pa_memblockq *memblockq, pa_memchunk *silence);
167 void pa_memblockq_apply_attr(pa_memblockq *memblockq, const pa_buffer_attr *a);
Dprotocol-native.c87 pa_memblockq *memblockq; member
124 pa_memblockq *memblockq; member
356 pa_memblockq_free(s->memblockq); in record_stream_free()
376 if (pa_memblockq_push_align(s->memblockq, chunk) < 0) { in record_stream_process_msg()
591 s->memblockq = pa_memblockq_new( in record_stream_new()
603 pa_memblockq_get_attr(s->memblockq, &s->buffer_attr); in record_stream_new()
660 pa_memblockq_free(s->memblockq); in playback_stream_free()
1070 start_index = ssync ? pa_memblockq_get_read_index(ssync->memblockq) : 0; in playback_stream_new()
1076 s->memblockq = pa_memblockq_new( in playback_stream_new()
1089 pa_memblockq_get_attr(s->memblockq, &s->buffer_attr); in playback_stream_new()
[all …]
Dmeson.build32 'play-memblockq.c',
92 'play-memblockq.h',
/third_party/pulseaudio/src/modules/rtp/
Dmodule-rtp-recv.c90 pa_memblockq *memblockq; member
139 …*((pa_usec_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(s->memblockq), &s->sink_input->sam… in sink_input_process_msg()
155 if (pa_memblockq_peek(s->memblockq, chunk) < 0) in sink_input_pop_cb()
158 pa_memblockq_drop(s->memblockq, chunk->length); in sink_input_pop_cb()
170 pa_memblockq_rewind(s->memblockq, nbytes); in sink_input_process_rewind_cb()
180 pa_memblockq_set_maxrewind(s->memblockq, nbytes); in sink_input_update_max_rewind_cb()
199 pa_memblockq_flush_read(s->memblockq); in sink_input_suspend_within_thread()
249 …pa_memblockq_seek(s->memblockq, delta * (int64_t) pa_rtp_context_get_frame_size(s->rtp_context), P… in rtpoll_work_cb()
260 if (pa_memblockq_push(s->memblockq, &chunk) < 0) { in rtpoll_work_cb()
262 pa_memblockq_seek(s->memblockq, (int64_t) chunk.length, PA_SEEK_RELATIVE, true); in rtpoll_work_cb()
[all …]
Dmodule-rtp-send.c108 pa_memblockq *memblockq; member
125 …*((pa_usec_t*) data) = pa_bytes_to_usec(pa_memblockq_get_length(u->memblockq), &u->source_output->… in source_output_process_msg()
141 if (pa_memblockq_push(u->memblockq, chunk) < 0) { in source_output_push_cb()
146 pa_rtp_send(u->rtp_context, u->memblockq); in source_output_push_cb()
457 u->memblockq = pa_memblockq_new( in pa__init()
543 if (u->memblockq) in pa__done()
544 pa_memblockq_free(u->memblockq); in pa__done()
/third_party/pulseaudio/src/modules/
Dmodule-virtual-sink.c65 pa_memblockq *memblockq; member
160 pa_memblockq_get_length(u->memblockq), true, false, false); in sink_request_rewind_cb()
231 while (pa_memblockq_peek(u->memblockq, &tchunk) < 0) { in sink_input_pop_cb()
235 pa_memblockq_push(u->memblockq, &nchunk); in sink_input_pop_cb()
253 pa_memblockq_drop(u->memblockq, chunk->length); in sink_input_pop_cb()
299 max_rewrite = nbytes + pa_memblockq_get_length(u->memblockq); in sink_input_process_rewind_cb()
304 pa_memblockq_seek(u->memblockq, - (int64_t) amount, PA_SEEK_RELATIVE, true); in sink_input_process_rewind_cb()
311 pa_memblockq_rewind(u->memblockq, nbytes); in sink_input_process_rewind_cb()
323 pa_memblockq_set_maxrewind(u->memblockq, nbytes); in sink_input_update_max_rewind_cb()
614 …u->memblockq = pa_memblockq_new("module-virtual-sink memblockq", 0, MEMBLOCKQ_MAXLENGTH, 0, &ss, 1… in pa__init()
[all …]
Dmodule-loopback.c80 pa_memblockq *memblockq; member
537 current_memblockq_length = pa_memblockq_get_length(u->memblockq); in memblockq_adjust()
543 pa_memblockq_drop(u->memblockq, buffer_correction); in memblockq_adjust()
549 pa_memblockq_seek(u->memblockq, (int64_t)buffer_correction, PA_SEEK_RELATIVE, true); in memblockq_adjust()
834 if (pa_memblockq_peek(u->memblockq, chunk) < 0) { in sink_input_pop_cb()
840 pa_memblockq_drop(u->memblockq, chunk->length); in sink_input_pop_cb()
858 pa_memblockq_rewind(u->memblockq, nbytes); in sink_input_process_rewind_cb()
872 … *r = pa_bytes_to_usec(pa_memblockq_get_length(u->memblockq), &u->sink_input->sample_spec); in sink_input_process_msg_cb()
881 pa_memblockq_push_align(u->memblockq, chunk); in sink_input_process_msg_cb()
935 pa_memblockq_is_readable(u->memblockq)) { in sink_input_process_msg_cb()
[all …]
Dmodule-virtual-surround-sink.c75 pa_memblockq *memblockq; member
188 pa_memblockq_get_length(u->memblockq), true, false, false); in sink_request_rewind_cb()
257 while (pa_memblockq_peek(u->memblockq, &tchunk) < 0) { in sink_input_pop_cb()
261 pa_memblockq_push(u->memblockq, &nchunk); in sink_input_pop_cb()
276 pa_memblockq_drop(u->memblockq, n * u->sink_fs); in sink_input_pop_cb()
328 max_rewrite = nbytes * u->sink_fs / u->fs + pa_memblockq_get_length(u->memblockq); in sink_input_process_rewind_cb()
333 pa_memblockq_seek(u->memblockq, - (int64_t) amount, PA_SEEK_RELATIVE, true); in sink_input_process_rewind_cb()
342 pa_memblockq_rewind(u->memblockq, nbytes * u->sink_fs / u->fs); in sink_input_process_rewind_cb()
354 pa_memblockq_set_maxrewind(u->memblockq, nbytes * u->sink_fs / u->fs); in sink_input_update_max_rewind_cb()
789 …u->memblockq = pa_memblockq_new("module-virtual-surround-sink memblockq", 0, MEMBLOCKQ_MAXLENGTH, … in pa__init()
[all …]
Dmodule-combine-sink.c115 pa_memblockq *memblockq; member
391 while (!pa_memblockq_is_readable(o->memblockq)) { in render_memblock()
409 pa_memblockq_push_align(o->memblockq, &chunk); in render_memblock()
427 if (pa_memblockq_is_readable(o->memblockq)) in request_memblock()
452 if (pa_memblockq_peek(o->memblockq, chunk) < 0) in sink_input_pop_cb()
455 pa_memblockq_drop(o->memblockq, chunk->length); in sink_input_pop_cb()
467 pa_memblockq_rewind(o->memblockq, nbytes); in sink_input_process_rewind_cb()
477 pa_memblockq_set_maxrewind(o->memblockq, nbytes); in sink_input_update_max_rewind_cb()
624 … *r = pa_bytes_to_usec(pa_memblockq_get_length(o->memblockq), &o->sink_input->sample_spec); in sink_input_process_msg()
634 pa_memblockq_push_align(o->memblockq, chunk); in sink_input_process_msg()
[all …]
Dmodule-ladspa-sink.c94 pa_memblockq *memblockq; member
428 pa_memblockq_get_length(u->memblockq), true, false, false); in sink_request_rewind_cb()
480 while (pa_memblockq_peek(u->memblockq, &tchunk) < 0) { in sink_input_pop_cb()
484 pa_memblockq_push(u->memblockq, &nchunk); in sink_input_pop_cb()
500 pa_memblockq_drop(u->memblockq, chunk->length); in sink_input_pop_cb()
536 max_rewrite = nbytes + pa_memblockq_get_length(u->memblockq); in sink_input_process_rewind_cb()
543 pa_memblockq_seek(u->memblockq, - (int64_t) amount, PA_SEEK_RELATIVE, true); in sink_input_process_rewind_cb()
558 pa_memblockq_rewind(u->memblockq, nbytes); in sink_input_process_rewind_cb()
570 pa_memblockq_set_maxrewind(u->memblockq, nbytes); in sink_input_update_max_rewind_cb()
1371 …u->memblockq = pa_memblockq_new("module-ladspa-sink memblockq", 0, MEMBLOCKQ_MAXLENGTH, 0, &ss, 1,… in pa__init()
[all …]
Dmodule-virtual-source.c72 pa_memblockq *memblockq; member
537 …u->memblockq = pa_memblockq_new("module-virtual-source memblockq", 0, MEMBLOCKQ_MAXLENGTH, 0, &ss,… in pa__init()
538 if (!u->memblockq) { in pa__init()
745 if (u->memblockq) in pa__done()
746 pa_memblockq_free(u->memblockq); in pa__done()
/third_party/pulseaudio/src/
Dmeson.build39 'pulsecore/memblockq.c',
118 'pulsecore/memblockq.h',
D.gitignore63 memblockq-test
DMakefile.am548 memblockq_test_SOURCES = tests/memblockq-test.c
741 pulsecore/memblockq.c pulsecore/memblockq.h \
1009 pulsecore/play-memblockq.c pulsecore/play-memblockq.h \
/third_party/pulseaudio/src/tests/
Dmeson.build47 [ 'memblockq-test', 'memblockq-test.c',
/third_party/pulseaudio/po/
DPOTFILES.in117 src/pulsecore/memblockq.c
133 src/pulsecore/play-memblockq.c
/third_party/pulseaudio/ohosbuild/src/pulsecore/
DBUILD.gn74 "../../../src/pulsecore/play-memblockq.c",
/third_party/pulseaudio/ohosbuild/src/
DBUILD.gn83 "../../src/pulsecore/memblockq.c",