summaryrefslogtreecommitdiff
path: root/apps/pcmbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/pcmbuf.c')
-rw-r--r--apps/pcmbuf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/pcmbuf.c b/apps/pcmbuf.c
index 773e97cce0..b32cb4c429 100644
--- a/apps/pcmbuf.c
+++ b/apps/pcmbuf.c
@@ -580,6 +580,12 @@ static void init_buffer_state(void)
580 chunk_transidx = INVALID_BUF_INDEX; 580 chunk_transidx = INVALID_BUF_INDEX;
581} 581}
582 582
583/* call prior to init to get bytes required */
584size_t pcmbuf_size_reqd(void)
585{
586 return get_next_required_pcmbuf_chunks() * PCMBUF_CHUNK_SIZE;
587}
588
583/* Initialize the PCM buffer. The structure looks like this: 589/* Initialize the PCM buffer. The structure looks like this:
584 * ...|---------PCMBUF---------|GUARDBUF|DESCS| */ 590 * ...|---------PCMBUF---------|GUARDBUF|DESCS| */
585size_t pcmbuf_init(void *bufend) 591size_t pcmbuf_init(void *bufend)