Lines Matching defs:pool
47 static pa_memblock *silence_memblock_new(pa_mempool *pool, uint8_t c) {
52 pa_assert(pool);
54 length = PA_MIN(pa_mempool_block_size_max(pool), PA_SILENCE_MAX);
56 b = pa_memblock_new(pool, length);
141 static pa_memblock* generate_block(pa_mempool *pool, const pa_sample_spec *ss, unsigned frequency, double amplitude, size_t nr_of_samples) {
154 pa_assert_se(r = pa_memblock_new(pool, pa_frame_size(ss) * nr_of_samples));
223 pa_mempool *pool = NULL;
330 pa_assert_se(pool = pa_mempool_new(PA_MEM_TYPE_PRIVATE, 0, true));
336 pa_assert_se(resampler = pa_resampler_new(pool, &a, NULL, &b, NULL, crossover_freq, method, 0));
340 in_chunk.memblock = generate_block(pool, &a, frequency, 0.5, samples);
366 silence_chunk.memblock = silence_memblock_new(pool, 0);
433 if (pool)
434 pa_mempool_unref(pool);