Lines Matching refs:pool
180 static pa_memblock *silence_memblock_new(pa_mempool *pool, uint8_t c) {
185 pa_assert(pool);
187 length = PA_MIN(pa_mempool_block_size_max(pool), PA_SILENCE_MAX);
189 b = pa_memblock_new(pool, length);
217 pa_memchunk* pa_silence_memchunk_get(pa_silence_cache *cache, pa_mempool *pool, pa_memchunk* ret, const pa_sample_spec *spec, size_t length) {
228 cache->blocks[PA_SAMPLE_U8] = b = silence_memblock_new(pool, 0x80);
240 cache->blocks[PA_SAMPLE_S16LE] = b = silence_memblock_new(pool, 0);
252 cache->blocks[PA_SAMPLE_ALAW] = b = silence_memblock_new(pool, 0xd5);
255 cache->blocks[PA_SAMPLE_ULAW] = b = silence_memblock_new(pool, 0xff);
373 void pa_memchunk_sine(pa_memchunk *c, pa_mempool *pool, unsigned rate, unsigned freq) {
383 l = pa_mempool_block_size_max(pool) / sizeof(float);
390 c->memblock = pa_memblock_new(pool, c->length);