Home
last modified time | relevance | path

Searched refs:tchunk (Results 1 – 9 of 9) sorted by relevance

/third_party/pulseaudio/src/pulsecore/
Dsound-file-stream.c149 pa_memchunk tchunk; in sink_input_pop_cb() local
163 tchunk.memblock = pa_memblock_new(i->sink->core->mempool, length); in sink_input_pop_cb()
164 tchunk.index = 0; in sink_input_pop_cb()
166 p = pa_memblock_acquire(tchunk.memblock); in sink_input_pop_cb()
176 pa_memblock_release(tchunk.memblock); in sink_input_pop_cb()
179 pa_memblock_unref(tchunk.memblock); in sink_input_pop_cb()
186 tchunk.length = (size_t) n * fs; in sink_input_pop_cb()
188 pa_memblockq_push_align(u->memblockq, &tchunk); in sink_input_pop_cb()
189 pa_memblock_unref(tchunk.memblock); in sink_input_pop_cb()
Dmemblockq.c534 pa_memchunk tchunk, rchunk; in pa_memblockq_peek_fixed_size() local
543 if (pa_memblockq_peek(bq, &tchunk) < 0) in pa_memblockq_peek_fixed_size()
546 if (tchunk.length >= block_size) { in pa_memblockq_peek_fixed_size()
547 *chunk = tchunk; in pa_memblockq_peek_fixed_size()
552 pool = pa_memblock_get_pool(tchunk.memblock); in pa_memblockq_peek_fixed_size()
555 rchunk.length = tchunk.length; in pa_memblockq_peek_fixed_size()
558 pa_memchunk_memcpy(&rchunk, &tchunk); in pa_memblockq_peek_fixed_size()
559 pa_memblock_unref(tchunk.memblock); in pa_memblockq_peek_fixed_size()
561 rchunk.index += tchunk.length; in pa_memblockq_peek_fixed_size()
566 ri = bq->read_index + tchunk.length; in pa_memblockq_peek_fixed_size()
[all …]
Dsink-input.c1011 pa_memchunk tchunk; in pa_sink_input_peek() local
1017 i->pop(i, ilength, &tchunk) < 0) { in pa_sink_input_peek()
1032 pa_assert(tchunk.length > 0); in pa_sink_input_peek()
1033 pa_assert(tchunk.memblock); in pa_sink_input_peek()
1037 i->thread_info.playing_for += tchunk.length; in pa_sink_input_peek()
1039 while (tchunk.length > 0) { in pa_sink_input_peek()
1043 wchunk = tchunk; in pa_sink_input_peek()
1104 tchunk.index += wchunk.length; in pa_sink_input_peek()
1105 tchunk.length -= wchunk.length; in pa_sink_input_peek()
1108 pa_memblock_unref(tchunk.memblock); in pa_sink_input_peek()
/third_party/pulseaudio/src/modules/
Dmodule-virtual-sink.c217 pa_memchunk tchunk; in sink_input_pop_cb() local
234 while (pa_memblockq_peek(u->memblockq, &tchunk) < 0) { in sink_input_pop_cb()
244 tchunk.length = PA_MIN(nbytes, tchunk.length); in sink_input_pop_cb()
245 pa_assert(tchunk.length > 0); in sink_input_pop_cb()
248 n = (unsigned) (tchunk.length / fs); in sink_input_pop_cb()
258 src = pa_memblock_acquire_chunk(&tchunk); in sink_input_pop_cb()
271 pa_memblock_release(tchunk.memblock); in sink_input_pop_cb()
274 pa_memblock_unref(tchunk.memblock); in sink_input_pop_cb()
Dmodule-equalizer-sink.c525 pa_memchunk tchunk; in flatten_to_memblockq() local
529 tchunk.index = 0; in flatten_to_memblockq()
530 tchunk.length = PA_MIN((u->output_buffer_length - i), mbs); in flatten_to_memblockq()
531 tchunk.memblock = pa_memblock_new(u->sink->core->mempool, tchunk.length); in flatten_to_memblockq()
533 dst = pa_memblock_acquire(tchunk.memblock); in flatten_to_memblockq()
534 memcpy(dst, u->output_buffer + i, tchunk.length); in flatten_to_memblockq()
535 pa_memblock_release(tchunk.memblock); in flatten_to_memblockq()
536 pa_memblockq_push(u->output_q, &tchunk); in flatten_to_memblockq()
537 pa_memblock_unref(tchunk.memblock); in flatten_to_memblockq()
538 i += tchunk.length; in flatten_to_memblockq()
[all …]
Dmodule-virtual-source.c270 pa_memchunk tchunk; in source_output_push_cb() local
281 while (pa_memblockq_peek(u->sink_memblockq, &tchunk) < 0) { in source_output_push_cb()
290 pa_assert(tchunk.length == chunk->length); in source_output_push_cb()
293 pa_memblockq_drop(u->sink_memblockq, tchunk.length); in source_output_push_cb()
316 streams[1].chunk = tchunk; in source_output_push_cb()
331 pa_memblock_unref(tchunk.memblock); /* clean-up */ in source_output_push_cb()
Dmodule-ladspa-sink.c471 pa_memchunk tchunk; in sink_input_pop_cb() local
483 while (pa_memblockq_peek(u->memblockq, &tchunk) < 0) { in sink_input_pop_cb()
491 tchunk.length = PA_MIN(nbytes, tchunk.length); in sink_input_pop_cb()
492 pa_assert(tchunk.length > 0); in sink_input_pop_cb()
495 n = (unsigned) (PA_MIN(tchunk.length, u->block_size) / fs); in sink_input_pop_cb()
505 src = pa_memblock_acquire_chunk(&tchunk); in sink_input_pop_cb()
516 pa_memblock_release(tchunk.memblock); in sink_input_pop_cb()
519 pa_memblock_unref(tchunk.memblock); in sink_input_pop_cb()
Dmodule-virtual-surround-sink.c406 pa_memchunk tchunk; in sink_input_pop_cb() local
425 pa_memblockq_peek_fixed_size(u->memblockq_sink, sink_bytes(u, u->fftlen), &tchunk); in sink_input_pop_cb()
427 pa_memblockq_drop(u->memblockq_sink, tchunk.length); in sink_input_pop_cb()
436 src = pa_memblock_acquire_chunk(&tchunk); in sink_input_pop_cb()
444 pa_memblock_release(tchunk.memblock); in sink_input_pop_cb()
445 pa_memblock_unref(tchunk.memblock); in sink_input_pop_cb()
/third_party/libffi/src/
Ddlmalloc.c1876 typedef struct malloc_tree_chunk tchunk; typedef