From: Lennart Poettering Date: Mon, 16 Jun 2008 19:01:09 +0000 (+0000) Subject: add pa_memblockq_get_base() X-Git-Tag: 1.0_branch~2801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fa53443354fd484a565e28b0118e246aed946caa;p=profile%2Fivi%2Fpulseaudio.git add pa_memblockq_get_base() git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@2539 fefdeb5f-60dc-0310-8127-8f9354f1896f --- diff --git a/src/pulsecore/memblockq.c b/src/pulsecore/memblockq.c index c047e56..e058765 100644 --- a/src/pulsecore/memblockq.c +++ b/src/pulsecore/memblockq.c @@ -908,3 +908,9 @@ unsigned pa_memblockq_get_nblocks(pa_memblockq *bq) { return bq->n_blocks; } + +size_t pa_memblockq_get_base(pa_memblockq *bq) { + pa_assert(bq); + + return bq->base; +} diff --git a/src/pulsecore/memblockq.h b/src/pulsecore/memblockq.h index 7c38757..29d3f79 100644 --- a/src/pulsecore/memblockq.h +++ b/src/pulsecore/memblockq.h @@ -169,4 +169,6 @@ pa_bool_t pa_memblockq_prebuf_active(pa_memblockq *bq); unsigned pa_memblockq_get_nblocks(pa_memblockq *bq); +size_t pa_memblockq_get_base(pa_memblockq *bq); + #endif