/third_party/pulseaudio/src/pulsecore/ |
D | mcalign.c | 54 if (m->leftover.memblock) in pa_mcalign_free() 55 pa_memblock_unref(m->leftover.memblock); in pa_mcalign_free() 57 if (m->current.memblock) in pa_mcalign_free() 58 pa_memblock_unref(m->current.memblock); in pa_mcalign_free() 67 pa_assert(c->memblock); in pa_mcalign_push() 70 pa_assert(!m->current.memblock); in pa_mcalign_push() 73 if (m->leftover.memblock) { in pa_mcalign_push() 76 if (m->leftover.memblock == c->memblock && in pa_mcalign_push() 102 lo_data = pa_memblock_acquire(m->leftover.memblock); in pa_mcalign_push() 103 m_data = pa_memblock_acquire(c->memblock); in pa_mcalign_push() [all …]
|
D | memchunk.c | 41 pa_assert(c->memblock); in pa_memchunk_make_writable() 43 if (pa_memblock_ref_is_one(c->memblock) && in pa_memchunk_make_writable() 44 !pa_memblock_is_read_only(c->memblock) && in pa_memchunk_make_writable() 45 pa_memblock_get_length(c->memblock) >= c->index+min) in pa_memchunk_make_writable() 50 pool = pa_memblock_get_pool(c->memblock); in pa_memchunk_make_writable() 54 sdata = pa_memblock_acquire(c->memblock); in pa_memchunk_make_writable() 59 pa_memblock_release(c->memblock); in pa_memchunk_make_writable() 62 pa_memblock_unref(c->memblock); in pa_memchunk_make_writable() 64 c->memblock = n; in pa_memchunk_make_writable() 82 pa_assert(c->memblock); in pa_memchunk_will_need() [all …]
|
D | srbchannel.c | 81 pa_memblock *memblock; member 231 sr->memblock = pa_memblock_new_pool(p, -1); in pa_srbchannel_new() 232 if (!sr->memblock) in pa_srbchannel_new() 235 srh = pa_memblock_acquire(sr->memblock); in pa_srbchannel_new() 241 capacity = (pa_memblock_get_length(sr->memblock) - srh->readbuf_offset) / 2; in pa_srbchannel_new() 249 (int) pa_memblock_get_length(sr->memblock), capacity); in pa_srbchannel_new() 297 sr->memblock = t->memblock; in pa_srbchannel_new_from_template() 298 pa_memblock_ref(sr->memblock); in pa_srbchannel_new_from_template() 299 srh = pa_memblock_acquire(sr->memblock); in pa_srbchannel_new_from_template() 335 t->memblock = sr->memblock; in pa_srbchannel_export() [all …]
|
D | pstream.c | 114 pa_memblock *memblock; member 392 pa_assert(i->chunk.memblock); in item_free() 393 pa_memblock_unref(i->chunk.memblock); in item_free() 422 if (p->write.memchunk.memblock) in pstream_free() 423 pa_memblock_unref(p->write.memchunk.memblock); in pstream_free() 425 if (p->readsrb.memblock) in pstream_free() 426 pa_memblock_unref(p->readsrb.memblock); in pstream_free() 431 if (p->readio.memblock) in pstream_free() 432 pa_memblock_unref(p->readio.memblock); in pstream_free() 506 i->chunk.memblock = pa_memblock_ref(chunk->memblock); in pa_pstream_send_memblock() [all …]
|
D | memblockq.c | 100 pa_memblock_ref(bq->silence.memblock); in pa_memblockq_new() 113 if (bq->silence.memblock) in pa_memblockq_free() 114 pa_memblock_unref(bq->silence.memblock); in pa_memblockq_free() 205 pa_memblock_unref(q->chunk.memblock); in drop_block() 284 pa_assert(uchunk->memblock); in pa_memblockq_push() 286 pa_assert(uchunk->index + uchunk->length <= pa_memblock_get_length(uchunk->memblock)); in pa_memblockq_push() 349 pa_memblock_ref(p->chunk.memblock); in pa_memblockq_push() 404 if (q->chunk.memblock == chunk.memblock && in pa_memblockq_push() 419 pa_memblock_ref(n->chunk.memblock); in pa_memblockq_push() 498 if (bq->silence.memblock) { in pa_memblockq_peek() [all …]
|
D | resampler.c | 483 if (r->to_work_format_buf.memblock) in pa_resampler_free() 484 pa_memblock_unref(r->to_work_format_buf.memblock); in pa_resampler_free() 485 if (r->remap_buf.memblock) in pa_resampler_free() 486 pa_memblock_unref(r->remap_buf.memblock); in pa_resampler_free() 487 if (r->resample_buf.memblock) in pa_resampler_free() 488 pa_memblock_unref(r->resample_buf.memblock); in pa_resampler_free() 489 if (r->from_work_format_buf.memblock) in pa_resampler_free() 490 pa_memblock_unref(r->from_work_format_buf.memblock); in pa_resampler_free() 711 pa_memblock_unref(out_chunk.memblock); in pa_resampler_prepare() 714 pa_memblock_unref(in_chunk.memblock); in pa_resampler_prepare() [all …]
|
D | sound-file.c | 102 chunk->memblock = pa_memblock_new(pool, l); in pa_sound_file_load() 108 ptr = pa_memblock_acquire(chunk->memblock); in pa_sound_file_load() 124 pa_memblock_release(chunk->memblock); in pa_sound_file_load() 126 if (ret != 0 && chunk->memblock) in pa_sound_file_load() 127 pa_memblock_unref(chunk->memblock); in pa_sound_file_load()
|
D | core-scache.c | 85 if (e->memchunk.memblock) in free_entry() 86 pa_memblock_unref(e->memchunk.memblock); in free_entry() 100 if (e->memchunk.memblock) in scache_add_item() 101 pa_memblock_unref(e->memchunk.memblock); in scache_add_item() 189 pa_memblock_ref(e->memchunk.memblock); in pa_scache_add_item() 234 pa_memblock_unref(chunk.memblock); in pa_scache_add_file() 320 if (e->lazy && !e->memchunk.memblock) { in pa_scache_play_item() 336 if (!e->memchunk.memblock) in pa_scache_play_item() 425 if (e->memchunk.memblock) in pa_scache_total_size() 445 if (!e->lazy || !e->memchunk.memblock) in pa_scache_unload_unused() [all …]
|
D | sample-util.c | 61 pa_assert(c->memblock); in pa_silence_memchunk() 64 data = pa_memblock_acquire(c->memblock); in pa_silence_memchunk() 66 pa_memblock_release(c->memblock); in pa_silence_memchunk() 263 ret->memblock = pa_memblock_ref(b); in pa_silence_memchunk_get() 354 p = pa_memblock_acquire(c->memblock); in pa_memchunk_dump_to_file() 359 pa_memblock_release(c->memblock); in pa_memchunk_dump_to_file() 390 c->memblock = pa_memblock_new(pool, c->length); in pa_memchunk_sine() 392 p = pa_memblock_acquire(c->memblock); in pa_memchunk_sine() 394 pa_memblock_release(c->memblock); in pa_memchunk_sine()
|
D | asyncmsgq.c | 89 if (i->memchunk.memblock) in asyncmsgq_free() 90 pa_memblock_unref(i->memchunk.memblock); in asyncmsgq_free() 131 pa_assert(chunk->memblock); in pa_asyncmsgq_post() 133 pa_memblock_ref(i->memchunk.memblock); in pa_asyncmsgq_post() 155 pa_assert(chunk->memblock); in pa_asyncmsgq_send() 227 if (a->current->memchunk.memblock) in pa_asyncmsgq_done() 228 pa_memblock_unref(a->current->memchunk.memblock); in pa_asyncmsgq_done()
|
D | sound-file-stream.c | 163 tchunk.memblock = pa_memblock_new(i->sink->core->mempool, length); 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() 189 pa_memblock_unref(tchunk.memblock); in sink_input_pop_cb() 323 pa_memblock_unref(silence.memblock); in pa_play_file()
|
/third_party/pulseaudio/src/tests/ |
D | mcalign-test.c | 51 if (!c.memblock) { in main() 52 c.memblock = pa_memblock_new(p, 2048); in main() 56 pa_assert(c.index < pa_memblock_get_length(c.memblock)); in main() 58 l = pa_memblock_get_length(c.memblock) - c.index; in main() 62 p = pa_memblock_acquire(c.memblock); in main() 65 pa_memblock_release(c.memblock); in main() 70 pa_memblock_release(c.memblock); in main() 78 if (c.index >= pa_memblock_get_length(c.memblock)) { in main() 79 pa_memblock_unref(c.memblock); in main() 89 p = pa_memblock_acquire(t.memblock); in main() [all …]
|
D | memblockq-test.c | 53 res.memblock = pa_memblock_new_fixed(p, (void*)data, size, true); in memchunk_from_str() 54 ck_assert_ptr_ne(res.memblock, NULL); in memchunk_from_str() 57 res.length = pa_memblock_get_length(res.memblock); in memchunk_from_str() 69 q = pa_memblock_acquire(chunk->memblock); in dump_chunk() 74 pa_memblock_release(chunk->memblock); in dump_chunk() 89 pa_memblock_unref(out.memblock); in dump() 104 pa_memblock_unref(out.memblock); in dump() 174 ck_assert_ptr_ne(chunk.memblock, NULL); in START_TEST() 179 pa_memblock_unref(chunk.memblock); in START_TEST() 230 pa_memblock_unref(silence.memblock); in START_TEST() [all …]
|
D | resampler-rewind-test.c | 125 a = pa_memblock_acquire(chunk_a->memblock); in compare_blocks() 126 b = pa_memblock_acquire(chunk_b->memblock); in compare_blocks() 135 pa_memblock_release(chunk_a->memblock); in compare_blocks() 136 pa_memblock_release(chunk_b->memblock); in compare_blocks() 340 in_chunk.memblock = generate_block(pool, &a, frequency, 0.5, samples); in main() 341 in_chunk.length = pa_memblock_get_length(in_chunk.memblock); in main() 348 if (!out_chunk.memblock) { in main() 349 pa_memblock_unref(in_chunk.memblock); in main() 366 silence_chunk.memblock = silence_memblock_new(pool, 0); in main() 367 silence_chunk.length = pa_frame_align(pa_memblock_get_length(silence_chunk.memblock), &a); in main() [all …]
|
D | lfe-filter-test.c | 101 mc.memblock = generate_data_block(lft, i * ONE_BLOCK_SAMPLES * fz); in lfe_filter_rewind_test() 102 mc.length = pa_memblock_get_length(mc.memblock); in lfe_filter_rewind_test() 105 save_data_block(lft, outptr + i * ONE_BLOCK_SAMPLES * fz, mc.memblock); in lfe_filter_rewind_test() 106 pa_memblock_unref(mc.memblock); in lfe_filter_rewind_test() 111 mc.memblock = generate_data_block(lft, pos); in lfe_filter_rewind_test() 112 mc.length = pa_memblock_get_length(mc.memblock); in lfe_filter_rewind_test() 115 ret = compare_data_block(lft, outptr + pos, pa_memblock_acquire(mc.memblock)); in lfe_filter_rewind_test() 116 pa_memblock_release(mc.memblock); in lfe_filter_rewind_test() 117 pa_memblock_unref(mc.memblock); in lfe_filter_rewind_test()
|
D | resampler-test.c | 49 d = pa_memblock_acquire(chunk->memblock); in dump_block() 124 pa_memblock_release(chunk->memblock); in dump_block() 424 i.memblock = pa_memblock_new(pool, pa_usec_to_bytes(1*PA_USEC_PER_SEC, &a)); in main() 427 i.length = pa_memblock_get_length(i.memblock); in main() 431 if (j.memblock) in main() 432 pa_memblock_unref(j.memblock); in main() 435 pa_memblock_unref(i.memblock); in main() 455 i.memblock = generate_block(pool, &a); in main() 456 i.length = pa_memblock_get_length(i.memblock); in main() 465 pa_memblock_unref(i.memblock); in main() [all …]
|
D | mix-test.c | 92 d = pa_memblock_acquire(chunk->memblock); in compare_block() 206 pa_memblock_release(chunk->memblock); in compare_block() 305 i.memblock = generate_block(pool, &a); in START_TEST() 306 i.length = pa_memblock_get_length(i.memblock); in START_TEST() 311 pa_memblock_ref(j.memblock); in START_TEST() 326 k.memblock = pa_memblock_new(pool, i.length); in START_TEST() 332 pa_memblock_release(k.memblock); in START_TEST() 336 pa_memblock_unref(i.memblock); in START_TEST() 337 pa_memblock_unref(j.memblock); in START_TEST() 338 pa_memblock_unref(k.memblock); in START_TEST()
|
D | cpu-mix-test.c | 47 pa_memblock_release(streams[i].chunk.memblock); in release_mix_streams() 82 c0.memblock = pa_memblock_new_fixed(pool, samples0, nsamples * sizeof(int16_t), false); in run_mix_test() 83 c0.length = pa_memblock_get_length(c0.memblock); in run_mix_test() 87 c1.memblock = pa_memblock_new_fixed(pool, samples1, nsamples * sizeof(int16_t), false); in run_mix_test() 88 c1.length = pa_memblock_get_length(c1.memblock); in run_mix_test() 142 pa_memblock_unref(c0.memblock); in run_mix_test() 143 pa_memblock_unref(c1.memblock); in run_mix_test()
|
/third_party/pulseaudio/src/modules/ |
D | module-virtual-surround-sink.c | 421 pa_memblock_unref(nchunk.memblock); in sink_input_pop_cb() 434 chunk->memblock = pa_memblock_new(i->sink->core->mempool, chunk->length); 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() 496 pa_memblock_release(chunk->memblock); in sink_input_pop_cb() 747 hrir_left_temp_chunk.memblock = NULL; in pa__init() 748 hrir_left_temp_chunk_resampled.memblock = NULL; in pa__init() 749 hrir_right_temp_chunk.memblock = NULL; in pa__init() 750 hrir_right_temp_chunk_resampled.memblock = NULL; in pa__init() 950 if (hrir_left_temp_chunk.memblock != hrir_left_temp_chunk_resampled.memblock) { in pa__init() [all …]
|
D | module-pipe-source.c | 143 if (!u->memchunk.memblock) { in thread_func() 144 u->memchunk.memblock = pa_memblock_new(u->core->mempool, pa_pipe_buf(u->fd)); in thread_func() 148 pa_assert(pa_memblock_get_length(u->memchunk.memblock) > u->memchunk.index); in thread_func() 150 p = pa_memblock_acquire(u->memchunk.memblock); in thread_func() 151 …d, (uint8_t*) p + u->memchunk.index, pa_memblock_get_length(u->memchunk.memblock) - u->memchunk.in… in thread_func() 152 pa_memblock_release(u->memchunk.memblock); in thread_func() 169 if (u->memchunk.index >= pa_memblock_get_length(u->memchunk.memblock)) { in thread_func() 170 pa_memblock_unref(u->memchunk.memblock); in thread_func() 353 if (u->memchunk.memblock) in pa__done() 354 pa_memblock_unref(u->memchunk.memblock); in pa__done()
|
/third_party/pulseaudio/src/modules/rtp/ |
D | rtp-native.c | 109 pa_assert(chunk.memblock); in pa_rtp_send() 113 mb[iov_idx] = chunk.memblock; in pa_rtp_send() 330 if (c->memchunk.memblock) in pa_rtp_recv() 331 pa_memblock_unref(c->memchunk.memblock); in pa_rtp_recv() 335 c->memchunk.memblock = pa_memblock_new(pool, l); in pa_rtp_recv() 337 c->memchunk.length = pa_memblock_get_length(c->memchunk.memblock); in pa_rtp_recv() 341 pa_memblock_release(c->memchunk.memblock); in pa_rtp_recv() 343 chunk->memblock = pa_memblock_ref(c->memchunk.memblock); in pa_rtp_recv() 351 pa_memblock_unref(c->memchunk.memblock); in pa_rtp_recv() 370 if (chunk->memblock) in pa_rtp_recv() [all …]
|
/third_party/pulseaudio/src/modules/raop/ |
D | raop-packet-buffer.c | 70 if (pb->packets[i].memblock) in pa_raop_packet_buffer_free() 71 pa_memblock_unref(pb->packets[i].memblock); in pa_raop_packet_buffer_free() 90 if (pb->packets[i].memblock) in pa_raop_packet_buffer_reset() 91 pa_memblock_unref(pb->packets[i].memblock); in pa_raop_packet_buffer_reset() 115 if (pb->packets[i].memblock) in pa_raop_packet_buffer_prepare() 116 pa_memblock_unref(pb->packets[i].memblock); in pa_raop_packet_buffer_prepare() 119 pb->packets[i].memblock = pa_memblock_new(pb->mempool, size); in pa_raop_packet_buffer_prepare() 156 if (delta < pb->size && pb->packets[i].memblock) in pa_raop_packet_buffer_retrieve()
|
/third_party/pulseaudio/src/pulsecore/filter/ |
D | lfe-filter.c | 61 pa_memblock_unref(s->chunk.memblock); in remove_state() 97 pa_memblock_release(buf->memblock); in process_block() 104 pa_memblock_release(buf->memblock); in process_block() 133 pool = pa_memblock_get_pool(buf->memblock); in pa_lfe_filter_process() 134 s->chunk.memblock = pa_memblock_new_malloced(pool, pa_xmemdup(data, buf->length), buf->length); in pa_lfe_filter_process() 137 pa_memblock_release(buf->memblock); in pa_lfe_filter_process()
|
/third_party/pulseaudio/src/pulsecore/resampler/ |
D | speex.c | 84 pa_memblock_release(input->memblock); in speex_resample_float() 85 pa_memblock_release(output->memblock); in speex_resample_float() 110 pa_memblock_release(input->memblock); in speex_resample_int() 111 pa_memblock_release(output->memblock); in speex_resample_int()
|
D | trivial.c | 55 pa_assert_fp(o_index * r->w_fz < pa_memblock_get_length(output->memblock)); in trivial_resample() 60 pa_memblock_release(input->memblock); in trivial_resample() 61 pa_memblock_release(output->memblock); in trivial_resample()
|