summaryrefslogtreecommitdiffstats
path: root/polyp/memblockq.c
diff options
context:
space:
mode:
Diffstat (limited to 'polyp/memblockq.c')
-rw-r--r--polyp/memblockq.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/polyp/memblockq.c b/polyp/memblockq.c
index b6dcca3f..7feb4685 100644
--- a/polyp/memblockq.c
+++ b/polyp/memblockq.c
@@ -56,7 +56,7 @@ struct pa_memblockq* pa_memblockq_new(size_t maxlength, size_t tlength, size_t b
bq->current_length = 0;
- fprintf(stderr, "memblockq requested: maxlength=%u, tlength=%u, base=%u, prebuf=%u, minreq=%u\n", maxlength, tlength, base, prebuf, minreq);
+ /*fprintf(stderr, "memblockq requested: maxlength=%u, tlength=%u, base=%u, prebuf=%u, minreq=%u\n", maxlength, tlength, base, prebuf, minreq);*/
bq->base = base;
@@ -324,3 +324,8 @@ void pa_memblockq_flush(struct pa_memblockq *bq) {
bq->n_blocks = 0;
bq->current_length = 0;
}
+
+uint32_t pa_memblockq_get_tlength(struct pa_memblockq *bq) {
+ assert(bq);
+ return bq->tlength;
+}